|
| 1 | +diff --git a/node_modules/react-native/index.js b/node_modules/react-native/index.js |
| 2 | +index f556fa3..2986043 100644 |
| 3 | +--- a/node_modules/react-native/index.js |
| 4 | ++++ b/node_modules/react-native/index.js |
| 5 | +@@ -411,43 +411,15 @@ module.exports = { |
| 6 | + }, |
| 7 | + // Deprecated Prop Types |
| 8 | + get ColorPropType(): $FlowFixMe { |
| 9 | +- console.error( |
| 10 | +- 'ColorPropType will be removed from React Native, along with all ' + |
| 11 | +- 'other PropTypes. We recommend that you migrate away from PropTypes ' + |
| 12 | +- 'and switch to a type system like TypeScript. If you need to ' + |
| 13 | +- 'continue using ColorPropType, migrate to the ' + |
| 14 | +- "'deprecated-react-native-prop-types' package.", |
| 15 | +- ); |
| 16 | + return require('deprecated-react-native-prop-types').ColorPropType; |
| 17 | + }, |
| 18 | + get EdgeInsetsPropType(): $FlowFixMe { |
| 19 | +- console.error( |
| 20 | +- 'EdgeInsetsPropType will be removed from React Native, along with all ' + |
| 21 | +- 'other PropTypes. We recommend that you migrate away from PropTypes ' + |
| 22 | +- 'and switch to a type system like TypeScript. If you need to ' + |
| 23 | +- 'continue using EdgeInsetsPropType, migrate to the ' + |
| 24 | +- "'deprecated-react-native-prop-types' package.", |
| 25 | +- ); |
| 26 | + return require('deprecated-react-native-prop-types').EdgeInsetsPropType; |
| 27 | + }, |
| 28 | + get PointPropType(): $FlowFixMe { |
| 29 | +- console.error( |
| 30 | +- 'PointPropType will be removed from React Native, along with all ' + |
| 31 | +- 'other PropTypes. We recommend that you migrate away from PropTypes ' + |
| 32 | +- 'and switch to a type system like TypeScript. If you need to ' + |
| 33 | +- 'continue using PointPropType, migrate to the ' + |
| 34 | +- "'deprecated-react-native-prop-types' package.", |
| 35 | +- ); |
| 36 | + return require('deprecated-react-native-prop-types').PointPropType; |
| 37 | + }, |
| 38 | + get ViewPropTypes(): $FlowFixMe { |
| 39 | +- console.error( |
| 40 | +- 'ViewPropTypes will be removed from React Native, along with all ' + |
| 41 | +- 'other PropTypes. We recommend that you migrate away from PropTypes ' + |
| 42 | +- 'and switch to a type system like TypeScript. If you need to ' + |
| 43 | +- 'continue using ViewPropTypes, migrate to the ' + |
| 44 | +- "'deprecated-react-native-prop-types' package.", |
| 45 | +- ); |
| 46 | + return require('deprecated-react-native-prop-types').ViewPropTypes; |
| 47 | + }, |
| 48 | + }; |
0 commit comments