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.

TypeError: undefined is not an object (evaluating '_reactNative.Image.resizeMode.contain')

See original GitHub issue

Hello 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:open
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

7reactions
sunilkumarkmcommented, Oct 30, 2018

That’s because since 0.56 Image.resizeMode is not exposed anymore. You just need to use the string value instead.

ex: resizeMode=“contain”

3reactions
q854284771commented, Mar 14, 2019

find the WidgetMixin.js and ModalWidget.js in source code and press ctrl + F to replace Image.resizeMode.contain to ‘contain’

Read more comments on GitHub >

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

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