question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined is not an object (evaluating '_reactNative.ViewPropTypes.style')

See original GitHub issue

Got 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
buskeronecommented, Jun 19, 2017

thanks @stuharvey ! upgrading to RN 0.44.3 fixed the problem.

2reactions
stuharveycommented, Jun 19, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found