-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: TypeError: undefined is not an object (evaluating '_reactNative.Text.propTypes.style') and useNativeDriver warning #18
Comments
I am using Expo and this worked for me: diff --git a/node_modules/react-native-animated-ellipsis/dist/AnimatedEllipsis.js b/node_modules/react-native-animated-ellipsis/dist/AnimatedEllipsis.js
index 908626b..2123d8c 100644
--- a/node_modules/react-native-animated-ellipsis/dist/AnimatedEllipsis.js
+++ b/node_modules/react-native-animated-ellipsis/dist/AnimatedEllipsis.js
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
-import { Text, Animated, View, StyleSheet } from 'react-native';
+import { Text, Animated, View, StyleSheet, TextStyle } from 'react-native';
import PropTypes from 'prop-types';
export default class AnimatedEllipsis extends Component {
@@ -47,7 +47,8 @@ export default class AnimatedEllipsis extends Component {
Animated.timing(this._animation_state.dot_opacities[which_dot], {
toValue: this._animation_state.target_opacity,
- duration: this.props.animationDelay
+ duration: this.props.animationDelay,
+ useNativeDriver: true
}).start(this.animate_dots.bind(this, next_dot));
}
@@ -71,7 +72,7 @@ AnimatedEllipsis.propTypes = {
numberOfDots: PropTypes.number,
animationDelay: PropTypes.number,
minOpacity: PropTypes.number,
- style: Text.propTypes.style
+ style: PropTypes.shape(TextStyle)
};
AnimatedEllipsis.defaultProps = {
numberOfDots: 3,
|
Are you using the latest expo? |
@YogeshBhatt Yes! I think so! ...
"@expo/webpack-config": "^0.17.0",
"expo": "~46.0.16",
"expo-status-bar": "~1.4.0",
"patch-package": "^6.5.0",
... |
@Thanhal-P-A Thank you, mate. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: