undefined is not an object (evaluating '_reactNative.ViewPropTypes.style')
See original GitHub issueGot this error when I added
import Carousel from 'react-native-snap-carousel'
React Native 0.42.0 and React 15.4.1
I’m a beginner with RN, can anybody help me?
Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:10 (3 by maintainers)
Top Results From Across the Web
TypeError: undefined is not an object (evaluating '_reactNative ...
TypeError: undefined is not an object (evaluating '_reactNative.View.propTypes.style') This error shows "react-native": "0.63.2", "react-native-elements": ...
Read more >undefined is not an object( evaluating '_reactNative ...
Solved error by updating native-base to 2.1.4 as my react native version was 0.44. View.propTypes is deprecated and instead ViewPropTypes is ...
Read more >TypeError: undefined is not an object (evaluating ... - Laracasts
TypeError: undefined is not an object (evaluating '_reactNative.View. ... Should now be ViewPropTypes.style - one of the packages you are using is legacy....
Read more >undefined is not an object (evaluating '_reactNative ... - YouTube
ERROR TypeError: undefined is not an object ( evaluating '_reactNative.Image.propTypes.resizeMode') React Native Download Video from url and ...
Read more >undefined is not an object-React Native - appsloveworld.com
Component { btnPress = () => { console.log("Fn Button pressed"); } render() { return ( <View style={styles.container}> <Button title="this is a test" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thanks @stuharvey ! upgrading to RN 0.44.3 fixed the problem.
Just encountered the same issue and managed to work around it by upgrading to React Native v0.44.x. I think you’ll need to update your React version as well. Check out the React Native upgrade guide for help with your specific setup.
See also this related issue: facebook/react-native#14032