react-native-safe-area-context icon indicating copy to clipboard operation
react-native-safe-area-context copied to clipboard

ViewProps Deprecated

Open Nesh108 opened this issue 3 years ago • 0 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaProvider.js b/node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaProvider.js
index 385ab18..e921cf2 100644
--- a/node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaProvider.js
+++ b/node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaProvider.js
@@ -8,7 +8,7 @@ import type {
 } from 'react-native/Libraries/Types/CodegenTypes';
 import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
 import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
-import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
+import type { ViewProps } from 'deprecated-react-native-prop-types';
 
 type Event = $ReadOnly<{|
   insets: $ReadOnly<{|
diff --git a/node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaView.js b/node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaView.js
index b5891a4..eed770d 100644
--- a/node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaView.js
+++ b/node_modules/react-native-safe-area-context/src/specs/NativeSafeAreaView.js
@@ -4,7 +4,7 @@
 
 import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
 import type { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
-import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
+import type { ViewProps } from 'deprecated-react-native-prop-types';
 
 type NativeProps = $ReadOnly<{|
   ...ViewProps,

This issue body was partially generated by patch-package.

Nesh108 avatar Jul 18 '22 11:07 Nesh108