-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,7 @@ | |
| "author": "Meliorence <[email protected]> (github.com/meliorence)", | ||
| "license": "BSD-3-Clause", | ||
| "dependencies": { | ||
| "deprecated-react-native-prop-types": "^5.0.0", | ||
| "prop-types": "^15.6.1", | ||
| "react-addons-shallow-compare": "15.6.2" | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| 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'; | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed |
||
| import PropTypes from 'prop-types'; | ||
| import shallowCompare from 'react-addons-shallow-compare'; | ||
| import { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| 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'; | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed |
||
| import PropTypes from 'prop-types'; | ||
| import PaginationDot from './PaginationDot'; | ||
| import styles from './Pagination.style'; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| 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'; | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed |
||
|
|
||
| import PropTypes from 'prop-types'; | ||
| import styles from './Pagination.style'; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| // Parallax effect inspired by https://github.com/oblador/react-native-parallax/ | ||
|
|
||
| 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'; | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed |
||
| import PropTypes from 'prop-types'; | ||
| import styles from './ParallaxImage.style'; | ||
|
|
||
|
|
||
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-typesto the dependencies inpackage.jsonwith version^5.0.0.