react-native-vlc-media-player
react-native-vlc-media-player copied to clipboard
Error for ViewTypeProps while using in react-native:0.69
While using react-native-vlc-media-player with react-native:0.69 getting the following error:
Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'
Facing the same error with react native :0.69.1
same problem with react native :0.69.1
same problem with react native :0.69.1,any solution?
Hi, have you solve this problem? I'm facing the same problem... I tried to update all to deprecated viewPropType but still getting same error...
Going through the stacktrace, it looks like the problem is an errant import statement in playerView/ControlBtn.js
Commenting it out as such at least fixes that error. I'll pull changes upstream once I understand it better.
//import Slider from 'react-native-slider';
And here's the kicker: the import isn't even being used in the current version.
Edit: Note that if you download the test app, which uses a lower version of RN, it all works fine, but you can find the offending ViewPropTypes
import in node_modules/react-native-slider, as one would expect.
Going through the stacktrace, it looks like the problem is an errant import statement in playerView/ControlBtn.js Commenting it out as such at least fixes that error. I'll pull changes upstream once I understand it better.
//import Slider from 'react-native-slider';
And here's the kicker: the import isn't even being used in the current version.Edit: Note that if you download the test app, which uses a lower version of RN, it all works fine, but you can find the offending
ViewPropTypes
import in node_modules/react-native-slider, as one would expect.
wow this solved my problem... thanks
...
// ViewPropTypes // deprecated-react-native-prop-types
} from "react-native";
import {ViewPropTypes} from 'deprecated-react-native-prop-types';
I tried this but still same error.
You actually need to remove the dependency of 'react-native-slider' in package.json to prevent installing it.
Are you guys getting the live feed under 1 second?? of Latency??