diff --git a/node_modules/react-native/index.js b/node_modules/react-native/index.js index 7149c64..8bed12f 100644 --- a/node_modules/react-native/index.js +++ b/node_modules/react-native/index.js @@ -380,45 +380,57 @@ module.exports = { }, // Deprecated Prop Types get ColorPropType(): $FlowFixMe { - console.error( - 'ColorPropType will be removed from React Native, along with all ' + - 'other PropTypes. We recommend that you migrate away from PropTypes ' + - 'and switch to a type system like TypeScript. If you need to ' + - 'continue using ColorPropType, migrate to the ' + - "'deprecated-react-native-prop-types' package.", - ); return require('deprecated-react-native-prop-types').ColorPropType; - }, - get EdgeInsetsPropType(): $FlowFixMe { - console.error( - 'EdgeInsetsPropType will be removed from React Native, along with all ' + - 'other PropTypes. We recommend that you migrate away from PropTypes ' + - 'and switch to a type system like TypeScript. If you need to ' + - 'continue using EdgeInsetsPropType, migrate to the ' + - "'deprecated-react-native-prop-types' package.", - ); + }, + get EdgeInsetsPropType(): $FlowFixMe { return require('deprecated-react-native-prop-types').EdgeInsetsPropType; - }, - get PointPropType(): $FlowFixMe { - console.error( - 'PointPropType will be removed from React Native, along with all ' + - 'other PropTypes. We recommend that you migrate away from PropTypes ' + - 'and switch to a type system like TypeScript. If you need to ' + - 'continue using PointPropType, migrate to the ' + - "'deprecated-react-native-prop-types' package.", - ); + }, + get PointPropType(): $FlowFixMe { return require('deprecated-react-native-prop-types').PointPropType; - }, - get ViewPropTypes(): $FlowFixMe { - console.error( - 'ViewPropTypes will be removed from React Native, along with all ' + - 'other PropTypes. We recommend that you migrate away from PropTypes ' + - 'and switch to a type system like TypeScript. If you need to ' + - 'continue using ViewPropTypes, migrate to the ' + - "'deprecated-react-native-prop-types' package.", - ); + }, + get ViewPropTypes(): $FlowFixMe { return require('deprecated-react-native-prop-types').ViewPropTypes; - }, + }, + // get ColorPropType(): $FlowFixMe { + // console.error( + // 'ColorPropType will be removed from React Native, along with all ' + + // 'other PropTypes. We recommend that you migrate away from PropTypes ' + + // 'and switch to a type system like TypeScript. If you need to ' + + // 'continue using ColorPropType, migrate to the ' + + // "'deprecated-react-native-prop-types' package.", + // ); + // return require('deprecated-react-native-prop-types').ColorPropType; + // }, + // get EdgeInsetsPropType(): $FlowFixMe { + // console.error( + // 'EdgeInsetsPropType will be removed from React Native, along with all ' + + // 'other PropTypes. We recommend that you migrate away from PropTypes ' + + // 'and switch to a type system like TypeScript. If you need to ' + + // 'continue using EdgeInsetsPropType, migrate to the ' + + // "'deprecated-react-native-prop-types' package.", + // ); + // return require('deprecated-react-native-prop-types').EdgeInsetsPropType; + // }, + // get PointPropType(): $FlowFixMe { + // console.error( + // 'PointPropType will be removed from React Native, along with all ' + + // 'other PropTypes. We recommend that you migrate away from PropTypes ' + + // 'and switch to a type system like TypeScript. If you need to ' + + // 'continue using PointPropType, migrate to the ' + + // "'deprecated-react-native-prop-types' package.", + // ); + // return require('deprecated-react-native-prop-types').PointPropType; + // }, + // get ViewPropTypes(): $FlowFixMe { + // console.error( + // 'ViewPropTypes will be removed from React Native, along with all ' + + // 'other PropTypes. We recommend that you migrate away from PropTypes ' + + // 'and switch to a type system like TypeScript. If you need to ' + + // 'continue using ViewPropTypes, migrate to the ' + + // "'deprecated-react-native-prop-types' package.", + // ); + // return require('deprecated-react-native-prop-types').ViewPropTypes; + // }, }; if (__DEV__) {