From d44a5a6c4530691a63204b2231f04e2bcf287907 Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Tue, 28 Mar 2023 18:46:35 +0200 Subject: Upgrade app to sdk 46 Fix no `Alert` in Camera.js --- patches/react-native+0.69.6.patch | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 patches/react-native+0.69.6.patch (limited to 'patches') diff --git a/patches/react-native+0.69.6.patch b/patches/react-native+0.69.6.patch new file mode 100644 index 0000000..e745fa8 --- /dev/null +++ b/patches/react-native+0.69.6.patch @@ -0,0 +1,41 @@ +diff --git a/node_modules/react-native/index.js b/node_modules/react-native/index.js +index d59ba34..8023167 100644 +--- a/node_modules/react-native/index.js ++++ b/node_modules/react-native/index.js +@@ -435,32 +435,16 @@ module.exports = { + }, + // Deprecated Prop Types + get ColorPropType(): $FlowFixMe { +- invariant( +- false, +- 'ColorPropType has been removed from React Native. Migrate to ' + +- "ColorPropType exported from 'deprecated-react-native-prop-types'.", +- ); ++ return require("deprecated-react-native-prop-types").ColorPropType + }, + get EdgeInsetsPropType(): $FlowFixMe { +- invariant( +- false, +- 'EdgeInsetsPropType has been removed from React Native. Migrate to ' + +- "EdgeInsetsPropType exported from 'deprecated-react-native-prop-types'.", +- ); ++ return require("deprecated-react-native-prop-types").EdgeInsetsPropType + }, + get PointPropType(): $FlowFixMe { +- invariant( +- false, +- 'PointPropType has been removed from React Native. Migrate to ' + +- "PointPropType exported from 'deprecated-react-native-prop-types'.", +- ); ++ return require("deprecated-react-native-prop-types").PointPropType + }, + get ViewPropTypes(): $FlowFixMe { +- invariant( +- false, +- 'ViewPropTypes has been removed from React Native. Migrate to ' + +- "ViewPropTypes exported from 'deprecated-react-native-prop-types'.", +- ); ++ return require("deprecated-react-native-prop-types").ViewPropTypes + }, + }; + -- cgit v1.3.1