diff --git a/package.json b/package.json index 80032db..d7b0a8d 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ }, "dependencies": { + "deprecated-react-native-prop-types": "^2.3.0", "prop-types": "^15.5.9" }, diff --git a/src/components/indicator/index.js b/src/components/indicator/index.js index 123f206..755c5a9 100644 --- a/src/components/indicator/index.js +++ b/src/components/indicator/index.js @@ -1,6 +1,7 @@ import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; -import { View, Animated, ViewPropTypes } from 'react-native'; +import { View, Animated } from 'react-native'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; import styles from './styles'; diff --git a/src/components/pages/index.js b/src/components/pages/index.js index d83158a..ac1c3bb 100644 --- a/src/components/pages/index.js +++ b/src/components/pages/index.js @@ -6,8 +6,8 @@ import { SafeAreaView, Animated, Platform, - ViewPropTypes, } from 'react-native'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; import Indicator from '../indicator'; import styles from './styles';