ladjs / react-native-loading-spinner-overlay

:barber: React Native loading spinner overlay
MIT License
1.59k stars 173 forks source link

Hide Android Navigation Bar #74

Closed JanOwiesniak closed 5 years ago

JanOwiesniak commented 5 years ago

I'm opening a new screen with react-navigation and using this component as a loading indicator. Android shows the system navigation bar at the bottom of the screen. This navigation bar disappears as soon as the spinner is not active anymore. Removing the spinner from my component, fixes this issue so i guess the component is responsible for it in some way.

screenshot_20190127-142648

I'm seeing this Android Navigation Bar Behaviour in other components which all seem to have a Modal in common too:

e.g.


Is there a way to always deactivate the android navigation bar? I'm already using this code snippets to accomplish hide android system stuff.

React Code

    StatusBar.setHidden(true);

Android styles.xml

<resources>
    <style name="AppTheme" parent="Theme.ReactNative.AppCompat.Light.NoActionBar.FullScreen">
    </style>
</resources>
niftylettuce commented 5 years ago

PR accepted. Please provide a reproducible test case.