简体   繁体   中英

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

i want to use react-native-video, react-native-video-controls

but I got an error

 ERROR  TypeError: undefined is not an object (evaluating '_reactNative.Image.propTypes.resizeMode')
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
"react": "18.0.0",
"react-native": "0.69.2",
"react-native-video": "^5.2.0",
"react-native-video-controls": "^2.8.1",

did anyone hse solved these issues

upgraded the react native video to version "^6.0.0-alpha.1" ( Github Issue Link )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM