react-native-video-player icon indicating copy to clipboard operation
react-native-video-player copied to clipboard

TypeError: undefined is not an object (evaluating '_MaterialIcons.default.propTypes.style')

Open NLanese opened this issue 2 years ago • 1 comments

Whenever I add import VideoPlayer from "react-native-video-player" to any file, I get the following error whenever I try to even start the app...

TypeError: undefined is not an object (evaluating '_MaterialIcons.default.propTypes.style')


 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.


 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

I tried using npm install material-icons and npm install material-icons --save which worked for a little (?) and then I started getting the same error again, and rerunning that command did nothing. In its current state, this package seems to be project-breaking

NLanese avatar Aug 10 '22 19:08 NLanese

I'm also facing this same issue

thechibuzor1 avatar Aug 24 '22 14:08 thechibuzor1

the same here :(

maoapp avatar Nov 17 '22 23:11 maoapp

Same here

marvelous-ikechi avatar Dec 30 '22 15:12 marvelous-ikechi

Try to upgrade your react-native-video to 5.2.1

roy-rayyone avatar Nov 08 '23 04:11 roy-rayyone

Try to upgrade your react-native-video to 5.2.1

This appears to be the solution, I upgraded a while ago and fixed the issue. I suppose I just needed to wait for an update

NLanese avatar Nov 08 '23 08:11 NLanese