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 6e4afe2 commit 53472b7Copy full SHA for 53472b7
src/views/SafeAreaView.js
@@ -11,7 +11,6 @@ import {
11
} from 'react-native';
12
import withOrientation from './withOrientation';
13
14
-const { isIPhoneX_deprecated } = DeviceInfo;
15
// See https://mydevice.io/devices/ for device dimensions
16
const X_WIDTH = 375;
17
const X_HEIGHT = 812;
@@ -24,8 +23,10 @@ const { PlatformConstants = {} } = NativeModules;
24
23
const { minor = 0 } = PlatformConstants.reactNativeVersion || {};
25
26
const isIPhoneX = (() => {
+ if (Platform.OS === 'web') return false;
27
+
28
if (minor >= 50) {
- return isIPhoneX_deprecated;
29
+ return DeviceInfo.isIPhoneX_deprecated;
30
}
31
32
return (
0 commit comments