razorRun / react-native-vlc-media-player

React native media player for video streaming and playing. Supports RTSP, RTMP and other protocols supported by VLC player
https://roshan.digital/
MIT License
357 stars 186 forks source link

Error for ViewTypeProps while using in react-native:0.69 #117

Closed shashank-prajapati closed 2 weeks ago

shashank-prajapati commented 2 years ago

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'

PragathiPrabhu commented 2 years ago

Facing the same error with react native :0.69.1

Iheb-miled commented 2 years ago

same problem with react native :0.69.1

RohanSensei commented 2 years ago

same problem with react native :0.69.1,any solution?

deccosantos commented 2 years ago

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

aivct commented 2 years ago

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.

deccosantos commented 2 years ago

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

KishorJena commented 2 years ago
  ...
  // ViewPropTypes // deprecated-react-native-prop-types
} from "react-native";

import {ViewPropTypes} from 'deprecated-react-native-prop-types'; 

I tried this but still same error.

inmess commented 1 year ago

You actually need to remove the dependency of 'react-native-slider' in package.json to prevent installing it.

vishaldybot commented 1 year ago

Are you guys getting the live feed under 1 second?? of Latency??

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been inactive for 14 days since being marked as stale.