From 77db2c5cb10ab1f2df965e9e382345be4f39aeda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Viande?= Date: Wed, 1 Jul 2020 09:53:25 +0200 Subject: [PATCH 1/3] Animated.Text: update propTypes (deprecated in 0.62) --- package.json | 4 ++-- src/components/affix/index.js | 2 +- src/components/helper/index.js | 2 +- src/components/label/index.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 1e63b0fb..8654861d 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "peerDependencies": { "react": ">=16.3.0", - "react-native": ">=0.55.0" + "react-native": ">=0.62.0" }, "devDependencies": { @@ -48,7 +48,7 @@ "jest": "^24.9.0", "metro-react-native-babel-preset": "^0.56.0", "react": "16.10.2", - "react-native": "0.61.2", + "react-native": "0.62.2", "react-test-renderer": "16.10.2" }, diff --git a/src/components/affix/index.js b/src/components/affix/index.js index 0f85022e..c12b3a6d 100644 --- a/src/components/affix/index.js +++ b/src/components/affix/index.js @@ -11,7 +11,7 @@ export default class Affix extends PureComponent { static propTypes = { numberOfLines: PropTypes.number, - style: Animated.Text.propTypes.style, + style: PropTypes.object, color: PropTypes.string.isRequired, fontSize: PropTypes.number.isRequired, diff --git a/src/components/helper/index.js b/src/components/helper/index.js index 6060f9f5..fe9d9c4d 100644 --- a/src/components/helper/index.js +++ b/src/components/helper/index.js @@ -11,7 +11,7 @@ export default class Helper extends PureComponent { disabled: PropTypes.bool, - style: Animated.Text.propTypes.style, + style: PropTypes.object, baseColor: PropTypes.string, errorColor: PropTypes.string, diff --git a/src/components/label/index.js b/src/components/label/index.js index 82eaf033..809fcddc 100644 --- a/src/components/label/index.js +++ b/src/components/label/index.js @@ -43,7 +43,7 @@ export default class Label extends PureComponent { y1: PropTypes.number, }), - style: Animated.Text.propTypes.style, + style: PropTypes.object, label: PropTypes.string, }; From 75b07c78fc15968c782c4a9011af0c148d3a3307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Viande?= Date: Fri, 21 Aug 2020 14:15:38 +0200 Subject: [PATCH 2/3] AnimatedComponent: set useNativeDriver prop (https://github.com/react-native-community/releases/blob/master/CHANGELOG.md#deprecated-1) --- src/components/field/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/field/index.js b/src/components/field/index.js index 281b7451..9f507b4c 100644 --- a/src/components/field/index.js +++ b/src/components/field/index.js @@ -224,6 +224,7 @@ export default class TextField extends PureComponent { let options = { toValue: this.focusState(), duration, + useNativeDriver: true }; startAnimation(focusAnimation, options, this.onFocusAnimationEnd); From f60013fe280d4ba8ec3b686f62a6bd4617d4da40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Viande?= Date: Fri, 21 Aug 2020 15:13:42 +0200 Subject: [PATCH 3/3] Package: new version 0.17.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8654861d..006e9df1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-material-textfield", - "version": "0.16.1", + "version": "0.17.0", "license": "BSD-3-Clause", "author": "Alexander Nazarov ",