Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViewPropTypes has been removed from React Native. #87

Open
UmarFarooqCA opened this issue Sep 14, 2022 · 2 comments
Open

ViewPropTypes has been removed from React Native. #87

UmarFarooqCA opened this issue Sep 14, 2022 · 2 comments

Comments

@UmarFarooqCA
Copy link

UmarFarooqCA commented Sep 14, 2022

I got error after installing the package in my application.

ERROR Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'. 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'm not using ViewPropTypes anywhere in my application. this error only show after installing the yarn add react-native-media-controls react-native-slider command

  • "react": "18.0.0"
  • "react-native": "0.69.5"
@viper-dark
Copy link

faced the same issue ,the package relies on react-native-slider which uses the removed ViewPropTypes ,
install @react-native-community/slider instead of "react-native-slider"

run your project ,the console will point you to where the errors occur
,change all the import and require statement from ""react-native-slider" to "@react-native-community/slider"

THIS IS NOT A GOOD FIX!
feel free to submit a pull request

@sayancitytech
Copy link

sayancitytech commented Apr 3, 2024

still no update from package manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants