diff --git a/src/components/affix/index.js b/src/components/affix/index.js index 0f85022e..ec610709 100644 --- a/src/components/affix/index.js +++ b/src/components/affix/index.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; -import { Animated } from 'react-native'; +import { Animated, Text } from 'react-native'; import styles from './styles'; @@ -11,7 +11,7 @@ export default class Affix extends PureComponent { static propTypes = { numberOfLines: PropTypes.number, - style: Animated.Text.propTypes.style, + // style: Text.propTypes, color: PropTypes.string.isRequired, fontSize: PropTypes.number.isRequired, diff --git a/src/components/counter/index.js b/src/components/counter/index.js index 35d3264f..f4965609 100644 --- a/src/components/counter/index.js +++ b/src/components/counter/index.js @@ -12,7 +12,7 @@ export default class Counter extends PureComponent { baseColor: PropTypes.string.isRequired, errorColor: PropTypes.string.isRequired, - style: Text.propTypes.style, + // style: Text.propTypes.style, }; render() { diff --git a/src/components/helper/index.js b/src/components/helper/index.js index 6060f9f5..9ecadfb9 100644 --- a/src/components/helper/index.js +++ b/src/components/helper/index.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; -import { Animated } from 'react-native'; +import { Animated, Text } from 'react-native'; import styles from './styles'; @@ -11,7 +11,7 @@ export default class Helper extends PureComponent { disabled: PropTypes.bool, - style: Animated.Text.propTypes.style, + // style: Text.propTypes, baseColor: PropTypes.string, errorColor: PropTypes.string, diff --git a/src/components/label/index.js b/src/components/label/index.js index 82eaf033..cc47ad95 100644 --- a/src/components/label/index.js +++ b/src/components/label/index.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; -import { Animated } from 'react-native'; +import { Text, Animated } from 'react-native'; import styles from './styles'; @@ -42,8 +42,8 @@ export default class Label extends PureComponent { x1: PropTypes.number, y1: PropTypes.number, }), - - style: Animated.Text.propTypes.style, + // style: Animated.Text.propTypes.style, + // style: Text.propTypes.style, label: PropTypes.string, };