Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save geraintwhite/c4b281da328a265321f3c70a299390d7 to your computer and use it in GitHub Desktop.
Save geraintwhite/c4b281da328a265321f3c70a299390d7 to your computer and use it in GitHub Desktop.
diff --git a/node_modules/react-native-material-textfield/src/components/affix/index.js b/node_modules/react-native-material-textfield/src/components/affix/index.js
index d6c9d64..4c4ea11 100644
--- a/node_modules/react-native-material-textfield/src/components/affix/index.js
+++ b/node_modules/react-native-material-textfield/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, ViewPropTypes } from 'react-native';
import styles from './styles';
@@ -24,7 +24,7 @@ export default class Affix extends PureComponent {
baseColor: PropTypes.string.isRequired,
animationDuration: PropTypes.number.isRequired,
- style: Animated.Text.propTypes.style,
+ style: ViewPropTypes.style,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
diff --git a/node_modules/react-native-material-textfield/src/components/helper/index.js b/node_modules/react-native-material-textfield/src/components/helper/index.js
index 60184ea..e0ca52e 100644
--- a/node_modules/react-native-material-textfield/src/components/helper/index.js
+++ b/node_modules/react-native-material-textfield/src/components/helper/index.js
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
-import { View, Animated } from 'react-native';
+import { View, Animated, ViewPropTypes } from 'react-native';
import styles from './styles';
@@ -10,7 +10,7 @@ export default class Helper extends PureComponent {
};
static propTypes = {
- style: Animated.Text.propTypes.style,
+ style: ViewPropTypes.style,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
diff --git a/node_modules/react-native-material-textfield/src/components/label/index.js b/node_modules/react-native-material-textfield/src/components/label/index.js
index ac3ed53..852c227 100644
--- a/node_modules/react-native-material-textfield/src/components/label/index.js
+++ b/node_modules/react-native-material-textfield/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, ViewPropTypes } from 'react-native';
export default class Label extends PureComponent {
static defaultProps = {
@@ -29,7 +29,7 @@ export default class Label extends PureComponent {
animationDuration: PropTypes.number.isRequired,
- style: Animated.Text.propTypes.style,
+ style: ViewPropTypes.style,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment