diff --git a/index.js b/index.js index d30971e..3f76e51 100755 --- a/index.js +++ b/index.js @@ -13,12 +13,11 @@ import { Animated, Dimensions, Text, - TouchableWithoutFeedback, - ViewPropTypes as RNViewPropTypes, + TouchableWithoutFeedback } from 'react-native' import PropTypes from 'prop-types'; -const ViewPropTypes = RNViewPropTypes || View.propTypes; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; export const DURATION = { LENGTH_SHORT: 500, FOREVER: 0, diff --git a/package.json b/package.json index 5671706..70a0cdc 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-easy-toast", - "version": "2.0.0", + "version": "2.1.0", "description": "A react native module to show toast like android, it works on iOS and Android.", "main": "index.js", "types": "index.d.ts", @@ -29,14 +29,12 @@ "url": "https://github.com/crazycodeboy/react-native-easy-toast/issues" }, "dependencies": { + "deprecated-react-native-prop-types": "^2.3.0", "prop-types": "^15.6.0" }, "peerDependencies": { "react-native": ">=0.20.0", "prop-types": "^15.5.7" }, - "homepage": "https://github.com/crazycodeboy/react-native-easy-toast#readme", - "dependencies": { - "prop-types": "^15.5.10" - } + "homepage": "https://github.com/crazycodeboy/react-native-easy-toast#readme" }