Skip to content

Commit

Permalink
Fix bottom navigation being cut off
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano committed Sep 10, 2019
1 parent 7c48767 commit d4dc08f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React from 'react';

import { Platform, YellowBox } from 'react-native';
import {
createSwitchNavigator,
createAppContainer,
createStackNavigator
createStackNavigator,
SafeAreaView
} from 'react-navigation';
import { useScreens } from 'react-native-screens';
import { createMaterialBottomTabNavigator } from 'react-navigation-material-bottom-tabs';
Expand All @@ -26,6 +28,10 @@ import { colors, fonts } from './src/styles';

const { store, persistor } = configureStore();

if (Platform.OS === 'android') {
SafeAreaView.setStatusBarHeight(0);
}

// Use native screens for faster performance in Navigators
useScreens();

Expand Down Expand Up @@ -136,7 +142,6 @@ registerRootComponent(Root);
// To ignore warnings for WebSocket, which is completely fine to use.
// See this page: https://stackoverflow.com/questions/53638667/unrecognized-websocket-connection-options-agent-permessagedeflate-pfx
console.ignoredYellowBox = ['Remote debugger'];
import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings([
'Unrecognized WebSocket connection option(s) `agent`, `perMessageDeflate`, `pfx`, `key`, `passphrase`, `cert`, `ca`, `ciphers`, `rejectUnauthorized`. Did you mean to put these under `headers`?'
]);
1 change: 0 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"package": "app.sardonyx",
"permissions": []
},
"androidStatusBarColor": "#ffffff",
"androidStatusBar": {
"backgroundColor": "#ffffff"
}
Expand Down

0 comments on commit d4dc08f

Please sign in to comment.