diff --git a/src/index.js b/src/index.js index 0a00f22..98d4a3b 100644 --- a/src/index.js +++ b/src/index.js @@ -6,9 +6,10 @@ 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 TextPropTypes from 'deprecated-react-native-prop-types/DeprecatedTextPropTypes'; const styles = StyleSheet.create({ containerDefault: {}, @@ -292,8 +293,8 @@ SmoothPinCodeInput.propTypes = { cellStyleFocused: ViewPropTypes.style, cellStyleFilled: ViewPropTypes.style, - textStyle: Text.propTypes.style, - textStyleFocused: Text.propTypes.style, + textStyle: TextPropTypes.style, + textStyleFocused: TextPropTypes.style, animated: PropTypes.bool, animationFocused: PropTypes.oneOfType([ diff --git a/yarn.lock b/yarn.lock index 3145a02..f74a0a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6,7 +6,7 @@ version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" -loose-envify@^1.3.1: +loose-envify@^1.3.1, loose-envify@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" dependencies: @@ -22,3 +22,24 @@ prop-types@^15.5.10: dependencies: loose-envify "^1.3.1" object-assign "^4.1.1" + +prop-types@^15.7.2: + version "15.8.1" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" + integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== + dependencies: + loose-envify "^1.4.0" + object-assign "^4.1.1" + react-is "^16.13.1" + +react-is@^16.13.1: + version "16.13.1" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" + integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== + +react-native-animatable@^1.3.0: + version "1.3.3" + resolved "https://registry.yarnpkg.com/react-native-animatable/-/react-native-animatable-1.3.3.tgz#a13a4af8258e3bb14d0a9d839917e9bb9274ec8a" + integrity sha512-2ckIxZQAsvWn25Ho+DK3d1mXIgj7tITkrS4pYDvx96WyOttSvzzFeQnM2od0+FUMzILbdHDsDEqZvnz1DYNQ1w== + dependencies: + prop-types "^15.7.2"