TypeError: undefined is not an object (evaluating '_reactNative.Image.resizeMode.contain')
See original GitHub issueHello there!, first, thank you for this great library.
Now Im trying to follow you example code, and I don’t know if I’m missing something here, but I’m facing this issue:
TypeError: undefined is not an object (evaluating '_reactNative.Image.resizeMode.contain')
This error is located at:
in exports (at UserFormPoliza.js:72)
in RCTView (at View.js:43)
in RCTScrollView (at ScrollView.js:1070)
in ScrollView (at ContainerMixin.js:129)
in GiftedForm (at UserFormPoliza.js:34)
in RCTView (at View.js:43)
in RCTScrollView (at ScrollView.js:1070)
in ScrollView (at KeyboardAwareHOC.js:397)
in _class (at Content.js:125)
in Content (at connectStyle.js:384)
in Styled(Content) (at UserFormPoliza.js:32)
in RCTView (at View.js:43)
in Container (at connectStyle.js:384)
in Styled(Container) (at UserFormPoliza.js:31)
in UserFormPoliza (at SceneView.js:9)
in SceneView (at StackViewLayout.js:563)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in AnimatedComponent (at StackViewCard.js:12)
in Card (at createPointerEventsContainer.js:28)
in Container (at StackViewLayout.js:612)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in StackViewLayout (at withOrientation.js:30)
in withOrientation (at StackView.js:63)
in RCTView (at View.js:43)
in Transitioner (at StackView.js:21)
in StackView (at createNavigator.js:59)
in Navigator (at createKeyboardAwareNavigator.js:11)
in KeyboardAwareNavigator (at createNavigationContainer.js:376)
in NavigationContainer (at App.js:94)
in App (at renderApplication.js:32)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in AppContainer (at renderApplication.js:31)
Any idea (I’m new with RN)
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
React Native, undefined is not an object (evaluating ...
According to this GitHub issue, upgrading the version of react-native-video to "^6.0.0-alpha.1" would solve the problem:
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 >typeerror: undefined is not an object (evaluating '_reactnative ...
ERROR TypeError: undefined is not an object (evaluating '_reactNative.Image.propTypes.resizeMode') ERROR Invariant Violation: Module AppRegistry is not a ...
Read more >ERROR TypeError: undefined is not an object (evaluating ...
Ever encountered this error → ERROR TypeError: undefined is not an object (evaluating '_this.props.navigation.navigate') whilst working hard on your project?
Read more >TypeError: undefined is not an object (evaluating '_reactNative ...
TypeError : undefined is not an object (evaluating '_reactNative.Image.resizeMode.cover'). react-native-gifted-form. 06 April 2021 Posted by kush4999.
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
That’s because since 0.56 Image.resizeMode is not exposed anymore. You just need to use the string value instead.
ex: resizeMode=“contain”
find the WidgetMixin.js and ModalWidget.js in source code and press ctrl + F to replace Image.resizeMode.contain to ‘contain’