Skip to content

Commit 7bebd3e

Browse files
committed
Revert "Fix bottom navigation being cut off"
This reverts commit d4dc08f.
1 parent 6bfdf77 commit 7bebd3e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

App.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import React from 'react';
22

3-
import { Platform, YellowBox } from 'react-native';
43
import {
54
createSwitchNavigator,
65
createAppContainer,
7-
createStackNavigator,
8-
SafeAreaView
6+
createStackNavigator
97
} from 'react-navigation';
108
import { useScreens } from 'react-native-screens';
119
import { createMaterialBottomTabNavigator } from 'react-navigation-material-bottom-tabs';
@@ -28,10 +26,6 @@ import { colors, fonts } from './src/styles';
2826

2927
const { store, persistor } = configureStore();
3028

31-
if (Platform.OS === 'android') {
32-
SafeAreaView.setStatusBarHeight(0);
33-
}
34-
3529
// Use native screens for faster performance in Navigators
3630
useScreens();
3731

@@ -142,6 +136,7 @@ registerRootComponent(Root);
142136
// To ignore warnings for WebSocket, which is completely fine to use.
143137
// See this page: https://stackoverflow.com/questions/53638667/unrecognized-websocket-connection-options-agent-permessagedeflate-pfx
144138
console.ignoredYellowBox = ['Remote debugger'];
139+
import { YellowBox } from 'react-native';
145140
YellowBox.ignoreWarnings([
146141
'Unrecognized WebSocket connection option(s) `agent`, `perMessageDeflate`, `pfx`, `key`, `passphrase`, `cert`, `ca`, `ciphers`, `rejectUnauthorized`. Did you mean to put these under `headers`?'
147142
]);

app.json

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"package": "app.sardonyx",
3030
"permissions": []
3131
},
32+
"androidStatusBarColor": "#ffffff",
3233
"androidStatusBar": {
3334
"backgroundColor": "#ffffff"
3435
}

0 commit comments

Comments
 (0)