ViewPropTypes error
allemptysheep opened this issue · 19 comments
ERROR Error: Requiring module "node_modules/react-native-image-slider-box/index.js", which threw an exception: Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
I've upgraded the react-native version to 0.69.1. I can't run the app now. Is there any update @allemptysheep ?
+1 same issue
Any update??
I've used this which working perfectly. https://www.npmjs.com/package/react-native-reanimated-carousel
I have same problem. Any update for this?
Same problem any update please
+1
When I put this fragment of code the error disapear.
Code removed due to mistake
When I put this fragment of code the error disapear.
const ViewPropTypes = typeof document !== 'undefined' || Platform.OS === 'web' ? PropTypes.shape({style: PropTypes.object}) : require('react-native').ViewPropTypes || View.propTypes;
Where did you put this code?
When I put this fragment of code the error disapear.
const ViewPropTypes = typeof document !== 'undefined' || Platform.OS === 'web' ? PropTypes.shape({style: PropTypes.object}) : require('react-native').ViewPropTypes || View.propTypes;
Where did you put this code?
Dude, sorry about, I realized that this solution should be in the repository react-native-snap-carousel, I made a mistake.
Sorry.
same errror
version
"react": "18.0.0",
"react-native": "0.69.4",
any update about this please i really need it for tutorial
waiting for some one response i change the library
Solution:
first remove folder react-native-image-slider-box from node_modules folder
and then install
yarn add megamaxs1234/react-native-image-slider-box
yarn add megamaxs1234/react-native-image-slider-box
It work!
megamaxs1234/react-native-image-slider-box
It works perfectly!
Please merge the updated code and release the new version.
Thanks @megamaxs1234
Why forked ? Not a PR ? @megamaxs1234