-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Replace PropTypes usage with deprecated-react-native-prop-types #1008
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
base: master
Are you sure you want to change the base?
Conversation
ingointo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes Requested:
-
Carousel.js:
- Removed
ViewPropTypesimport fromreact-nativeand added it fromdeprecated-react-native-prop-types.
- Removed
-
Pagination.js:
- Removed
ViewPropTypesimport fromreact-nativeand added it fromdeprecated-react-native-prop-types.
- Removed
-
PaginationDot.js:
- Removed
ViewPropTypesimport fromreact-nativeand added it fromdeprecated-react-native-prop-types.
- Removed
-
ParallaxImage.js:
- Removed
ViewPropTypesimport fromreact-nativeand added it fromdeprecated-react-native-prop-types.
- Removed
| "author": "Meliorence <[email protected]> (github.com/meliorence)", | ||
| "license": "BSD-3-Clause", | ||
| "dependencies": { | ||
| "deprecated-react-native-prop-types": "^5.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added deprecated-react-native-prop-types to the dependencies in package.json with version ^5.0.0.
| import React, { Component } from 'react'; | ||
| import { Animated, Easing, FlatList, I18nManager, Platform, ScrollView, View, ViewPropTypes } from 'react-native'; | ||
| import { Animated, Easing, FlatList, I18nManager, Platform, ScrollView, View } from 'react-native'; | ||
| import { ViewPropTypes } from 'deprecated-react-native-prop-types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed ViewPropTypes import from react-native and added it from deprecated-react-native-prop-types.
| import React, { PureComponent } from 'react'; | ||
| import { I18nManager, Platform, View, ViewPropTypes } from 'react-native'; | ||
| import { I18nManager, Platform, View } from 'react-native'; | ||
| import { ViewPropTypes } from 'deprecated-react-native-prop-types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed ViewPropTypes import from react-native and added it from deprecated-react-native-prop-types.
| import React, { PureComponent } from 'react'; | ||
| import { View, Animated, Easing, TouchableOpacity, ViewPropTypes } from 'react-native'; | ||
| import { View, Animated, Easing, TouchableOpacity } from 'react-native'; | ||
| import { ViewPropTypes } from 'deprecated-react-native-prop-types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed ViewPropTypes import from react-native and added it from deprecated-react-native-prop-types
| import React, { Component } from 'react'; | ||
| import { View, ViewPropTypes, Image, Animated, Easing, ActivityIndicator, findNodeHandle } from 'react-native'; | ||
| import { View, Image, Animated, Easing, ActivityIndicator, findNodeHandle } from 'react-native'; | ||
| import { ViewPropTypes } from 'deprecated-react-native-prop-types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed ViewPropTypes import from react-native and added it from deprecated-react-native-prop-types
Platforms affected
What does this PR do?
What testing has been done on this change?
Tested features checklist
enableMomentum)vertical)activeSlideAlignment)autoplay)loop)ScrollView/FlatListcarousels (propuseScrollView)ParallaxImagecomponentPaginationcomponent