Skip to content
Snippets Groups Projects
Commit f517c245 authored by Tom French's avatar Tom French Committed by James Long
Browse files

build: remove unused patch

parent fda8127b
No related branches found
No related tags found
No related merge requests found
diff --git a/node_modules/react-native-safe-area-view/index.js b/node_modules/react-native-safe-area-view/index.js
index a21ff41..4a92960 100644
--- a/node_modules/react-native-safe-area-view/index.js
+++ b/node_modules/react-native-safe-area-view/index.js
@@ -5,6 +5,7 @@ import {
Platform,
StyleSheet,
Animated,
+ NativeModules
} from 'react-native';
import hoistStatics from 'hoist-non-react-statics';
@@ -86,11 +87,7 @@ const statusBarHeight = isLandscape => {
* we do.
*/
if (Platform.OS === 'android') {
- if (global.Expo) {
- return global.Expo.Constants.statusBarHeight;
- } else {
- return 0;
- }
+ return NativeModules.StatusBarHeight.statusBarHeight;
}
if (isIPhoneX) {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment