TypeError: Cannot read property 'style' of undefined
using RN 0.81.1
You should just patch the package by changing these three files :
node_modules/react-native-snap-carousel/src/carousel/Carousel.js ,
node_modules/react-native-snap-carousel/src/pagination/Pagination.js ,
node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js
and instead of importing ViewPropTypes from 'react native' , import it from deprecated-react-native-prop-types.
Then run
yarn patch-package react-native-snap-carousel
rebuild and it will fix the issue
You should just patch the package by changing these three files :
node_modules/react-native-snap-carousel/src/carousel/Carousel.js,node_modules/react-native-snap-carousel/src/pagination/Pagination.js,node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.jsand instead of importing ViewPropTypes from 'react native' , import it from
deprecated-react-native-prop-types. Then run
yarn patch-package react-native-snap-carouselrebuild and it will fix the issue
Thanks. it works. Just, I think one more file to patch is
node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js