react-native-video: ERROR TypeError: undefined is not an object (evaluating '_reactNative.Image.propTypes.resizeMode')
Bug
Platform
Which player are you experiencing the problem on:
- iOS
Environment info
React native info output:
ERROR TypeError: undefined is not an object (evaluating '_reactNative.Image.propTypes.resizeMode')
Library version: react-native@0.69.0-rc.6, react@18.1.0 and react-native-video@^5.2.0
Steps To Reproduce
Trying out all the latest stuff and I get the error shown above. I’m using nx & react-native without expo. The following code seems to be the culprit: https://github.com/react-native-video/react-native-video/blob/master/Video.js#L429
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 16 (2 by maintainers)
@freeboub Oops my mistake !! My package.json contained version “^5.2.0”, I just upgraded the react native video to version “^6.0.0-alpha.1” and everything works absolutely fine. Thanks 😃
Hi, I tried to upgrade to react 0.69.1 and react-native-video to 6.0.0-alpha.1. I am still facing this issue. Please help
The issue was solved after upgrading to version 5.2.1.
I’m getting issues while installing the pods after upgrading the lib to version
6.0.0-alpha.1. When I degrade the lib to version5.2.0then it’s working fine.@imshreyansh it is fixed in v6 pre release ? Are you one this one ?
@devon-whil thanks for the detail report ! Similar fix was done here: https://github.com/react-native-video/react-native-video/pull/2625/files We should use: import {ImagePropTypes} from ‘deprecated-react-native-prop-types’; from: https://www.npmjs.com/package/deprecated-react-native-prop-types/v/2.2.0 If you can open a PR that would be helpful ! Thank you