react-native-snap-carousel: ERROR ViewPropTypes will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript.
[Expo App] - React native IOS
ERROR ViewPropTypes will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript.
If you need to continue using ViewPropTypes, migrate to the deprecated-react-native-prop-types
package.
This package provides the old PropTypes
that have been removed from React Native.
-
npm install deprecated-react-native-prop-types
-
Import the
ViewPropTypes
fromdeprecated-react-native-prop-types
instead ofreact-native
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
- Replace all instances of ViewPropTypes in theses files
Carousel.js
,Pagination.js
,PaginationDot.js
,ParallaxImage.js
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 10
- Comments: 16
install this version
yarn add react-native-snap-carousel@4.0.0-beta.6
use patch-package react-native-snap-carousel+3.9.1.patch:
Worked for me, thanks.
Thank you @Karroch-a , beta is working.
thank @Karroch-a . Is working.