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/field/index.js b/src/components/field/index.js index 281b7451..b6e6edfd 100644 --- a/src/components/field/index.js +++ b/src/components/field/index.js @@ -223,6 +223,7 @@ export default class TextField extends PureComponent { let options = { toValue: this.focusState(), + useNativeDriver: false, duration, }; diff --git a/src/components/helper/index.js b/src/components/helper/index.js index 6060f9f5..92403c80 100644 --- a/src/components/helper/index.js +++ b/src/components/helper/index.js @@ -11,8 +11,8 @@ 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, };