From e2d155446ab9057fc7bf6251492fe445d47c07c2 Mon Sep 17 00:00:00 2001 From: Vishal Jadav Date: Wed, 10 Jun 2020 20:50:42 +0530 Subject: [PATCH] Resolved Animated.Text issue --- src/components/affix/index.js | 4 ++-- src/components/helper/index.js | 4 ++-- src/components/label/index.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/affix/index.js b/src/components/affix/index.js index 0f85022e..8d7cd742 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.style, color: PropTypes.string.isRequired, fontSize: PropTypes.number.isRequired, diff --git a/src/components/helper/index.js b/src/components/helper/index.js index 6060f9f5..76eb54d7 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.style, baseColor: PropTypes.string, errorColor: PropTypes.string, diff --git a/src/components/label/index.js b/src/components/label/index.js index 82eaf033..4eb5f8b6 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 { Animated, Text } from 'react-native'; import styles from './styles'; @@ -43,7 +43,7 @@ export default class Label extends PureComponent { y1: PropTypes.number, }), - style: Animated.Text.propTypes.style, + style: Text.propTypes.style, label: PropTypes.string, };