From 2727548eabb8dbded38c066183350dbc26ba35fe Mon Sep 17 00:00:00 2001 From: Ade Mahendra Date: Thu, 9 Jul 2020 12:19:24 +0700 Subject: [PATCH 1/2] Fixing for Expo 38 --- 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..dba2416a 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/helper/index.js b/src/components/helper/index.js index 6060f9f5..c82c12fe 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..e5f8b62f 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'; @@ -43,7 +43,7 @@ export default class Label extends PureComponent { y1: PropTypes.number, }), - style: Animated.Text.propTypes.style, + style: Text.propTypes, label: PropTypes.string, }; From 6d2dbc264d0d3fffa6e9c4c4cc8beebba2f7031c Mon Sep 17 00:00:00 2001 From: Ade Mahendra Date: Fri, 11 Sep 2020 11:03:38 +0700 Subject: [PATCH 2/2] Remove style --- src/components/affix/index.js | 2 +- src/components/counter/index.js | 2 +- src/components/helper/index.js | 2 +- src/components/label/index.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/affix/index.js b/src/components/affix/index.js index dba2416a..ec610709 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: Text.propTypes, + // 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 c82c12fe..9ecadfb9 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: Text.propTypes, + // style: Text.propTypes, baseColor: PropTypes.string, errorColor: PropTypes.string, diff --git a/src/components/label/index.js b/src/components/label/index.js index e5f8b62f..cc47ad95 100644 --- a/src/components/label/index.js +++ b/src/components/label/index.js @@ -42,8 +42,8 @@ export default class Label extends PureComponent { x1: PropTypes.number, y1: PropTypes.number, }), - - style: Text.propTypes, + // style: Animated.Text.propTypes.style, + // style: Text.propTypes.style, label: PropTypes.string, };