react-native-vlc-media-player icon indicating copy to clipboard operation
react-native-vlc-media-player copied to clipboard

Error for ViewTypeProps while using in react-native:0.69

Open shashank-prajapati opened this issue 2 years ago • 10 comments

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'

shashank-prajapati avatar Jun 29 '22 05:06 shashank-prajapati

Facing the same error with react native :0.69.1

PragathiPrabhu avatar Jul 09 '22 15:07 PragathiPrabhu

same problem with react native :0.69.1

Iheb-miled avatar Jul 18 '22 21:07 Iheb-miled

same problem with react native :0.69.1,any solution?

RohanSensei avatar Jul 19 '22 08:07 RohanSensei

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

deccosantos avatar Aug 05 '22 16:08 deccosantos

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.

aivct avatar Aug 16 '22 19:08 aivct

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

deccosantos avatar Aug 17 '22 13:08 deccosantos

  ...
  // ViewPropTypes // deprecated-react-native-prop-types
} from "react-native";

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

I tried this but still same error.

KishorJena avatar Sep 13 '22 18:09 KishorJena

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

inmess avatar Nov 24 '22 02:11 inmess

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

vishaldybot avatar Aug 12 '23 08:08 vishaldybot