Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native Video - undefined is not an object (evaluating '_reactNative.Image.propTypes.resizeMode'

I'm using react-native-video in react-native v0.69 withing nx monorepo and when trying to add Video component like below, I get an error TypeError: undefined is not an object (evaluating '_reactNative.Image.propTypes.resizeMode'.

import Video from 'react-native-video'

  <Video
     resizeMode="none"
     source={{ uri: _.url }}
     style={{ width: 64, height: 64 }}
  />

When i remove resizeMode prop I get same error. What is causing this?

like image 419
Jakub Jarząbek Avatar asked Oct 28 '25 09:10

Jakub Jarząbek


1 Answers

I've managed to solve it. For react-native 0.69,^6.0.0-alpha.1 version of react-native-video fix the issue

like image 69
Jakub Jarząbek Avatar answered Oct 31 '25 00:10

Jakub Jarząbek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!