39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
diff --git a/node_modules/react-native-button/Button.js b/node_modules/react-native-button/Button.js
|
|
index b248176..3c6aefa 100644
|
|
--- a/node_modules/react-native-button/Button.js
|
|
+++ b/node_modules/react-native-button/Button.js
|
|
@@ -1,4 +1,5 @@
|
|
import PropTypes from 'prop-types';
|
|
+import {TextPropTypes,ViewPropTypes} from 'deprecated-react-native-prop-types'
|
|
import React, { Component } from 'react';
|
|
import {
|
|
Platform,
|
|
@@ -7,7 +8,7 @@ import {
|
|
TouchableOpacity,
|
|
TouchableNativeFeedback,
|
|
View,
|
|
- ViewPropTypes
|
|
+ //ViewPropTypes
|
|
} from 'react-native';
|
|
|
|
import coalesceNonElementChildren from './coalesceNonElementChildren';
|
|
@@ -18,12 +19,15 @@ export default class Button extends Component {
|
|
static propTypes = {
|
|
...TouchableOpacity.propTypes,
|
|
accessibilityLabel: PropTypes.string,
|
|
- allowFontScaling: Text.propTypes.allowFontScaling,
|
|
+ // allowFontScaling: Text.propTypes.allowFontScaling,
|
|
+ allowFontScaling: TextPropTypes.allowFontScaling,
|
|
containerStyle: ViewPropTypes.style,
|
|
disabledContainerStyle: ViewPropTypes.style,
|
|
disabled: PropTypes.bool,
|
|
- style: Text.propTypes.style,
|
|
- styleDisabled: Text.propTypes.style,
|
|
+ style: TextPropTypes.style,
|
|
+ styleDisabled: TextPropTypes.style,
|
|
+ // style: Text.propTypes.style,
|
|
+ // styleDisabled: Text.propTypes.style,
|
|
childGroupStyle: ViewPropTypes.style,
|
|
androidBackground: PropTypes.object,
|
|
};
|