We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8153340 commit df3a1caCopy full SHA for df3a1ca
1 file changed
packages/react-native/index.js
@@ -400,4 +400,20 @@ if (__DEV__) {
400
);
401
},
402
});
403
+
404
+ /* $FlowFixMe[prop-missing] This is intentional: Flow will error when
405
+ * attempting to access SafeAreaView. */
406
+ /* $FlowFixMe[invalid-export] This is intentional: Flow will error when
407
408
+ Object.defineProperty(module.exports, 'SafeAreaView', {
409
+ configurable: true,
410
+ get() {
411
+ invariant(
412
+ false,
413
+ 'SafeAreaView has been removed from react-native core. ' +
414
+ "Please use 'react-native-safe-area-context' instead. " +
415
+ 'See https://github.com/AppAndFlow/react-native-safe-area-context',
416
+ );
417
+ },
418
+ });
419
}
0 commit comments