Skip to content

Commit 7a33a73

Browse files
uguraktasbrentvatne
authored andcommitted
1 parent bd50f6c commit 7a33a73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/handling-iphonex.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ import { Platform } from 'react-native';
101101
import { SafeAreaView } from 'react-navigation';
102102
import DeviceInfo from 'react-native-device-info';
103103

104-
if (Platform.OS === 'android' && Device.hasNotch()) {
104+
if (Platform.OS === 'android' && DeviceInfo.hasNotch()) {
105105
SafeAreaView.setStatusBarHeight(
106106
/* Some value for status bar height + notch height */
107107
);
108108
}
109109
```
110110

111-
Work is in progress on a longer term solution, see [this pull request](https://github.com/facebook/react-native/pull/20999) for more information.
111+
Work is in progress on a longer term solution, see [this pull request](https://github.com/facebook/react-native/pull/20999) for more information.

0 commit comments

Comments
 (0)