Skip to content
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

undefined: Animated.Text.propTypes.style #11

Open
aphzol opened this issue Apr 6, 2020 · 3 comments
Open

undefined: Animated.Text.propTypes.style #11

aphzol opened this issue Apr 6, 2020 · 3 comments

Comments

@aphzol
Copy link

aphzol commented Apr 6, 2020

Error: Requiring module "node-modules/react-native-material-buttons/index.js", which threw an exception: TypeError: undefined is not an object (evaluating '_reactNative.Animated.Text.propTypes.style'

image

vitiaaap29 pushed a commit to vitiaaap29/react-native-material-buttons that referenced this issue May 19, 2020
@bill2004158
Copy link

same issue as n4kz/react-native-material-textfield#233

@bill2004158
Copy link

#12

@faycito
Copy link

faycito commented Jun 4, 2020

go to node_modules/react-native-material-buttons and change the files:
./text-button/index.js & ./raised-text-button/index.js for both line 24 from
titleStyle: Animated.Text.propTypes.style, to titleStyle: PropTypes.style then at the file ./button/index.js add useNativeDriver:true inside all Animated.timing like that:
Animated .timing(focusAnimation, { toValue: focused? 1 : 0, duration: focusAnimationDuration, easing: Easing.out(Easing.ease), useNativeDriver:true }) .start();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants