diff --git a/package.json b/package.json index 7bc8b6b..0ca3aa0 100755 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ }, "dependencies": { "prop-types": "^15.5.10", + "deprecated-react-native-prop-types": "^2.2.0", "react-native-animatable": "^1.3.0" } } diff --git a/src/.index.js.swp b/src/.index.js.swp deleted file mode 100644 index d81b936..0000000 Binary files a/src/.index.js.swp and /dev/null differ diff --git a/src/index.js b/src/index.js index 0a00f22..6835f2a 100644 --- a/src/index.js +++ b/src/index.js @@ -6,10 +6,12 @@ import { TextInput, StyleSheet, I18nManager, - ViewPropTypes, } from 'react-native'; import * as Animatable from 'react-native-animatable'; +import ViewPropTypes from 'deprecated-react-native-prop-types/DeprecatedViewPropTypes' +import TextStylePropTypes from 'deprecated-react-native-prop-types/DeprecatedTextStylePropTypes' + const styles = StyleSheet.create({ containerDefault: {}, cellDefault: { @@ -292,8 +294,8 @@ SmoothPinCodeInput.propTypes = { cellStyleFocused: ViewPropTypes.style, cellStyleFilled: ViewPropTypes.style, - textStyle: Text.propTypes.style, - textStyleFocused: Text.propTypes.style, + textStyle: TextStylePropTypes, + textStyleFocused: TextStylePropTypes, animated: PropTypes.bool, animationFocused: PropTypes.oneOfType([