Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native Fullscreen

I am trying to create a simple react native application. I need to run the app in fullscreen mode. Is there a way to do this?

I need to remove/hide the bottom buttons. I am doing this for Android devices.

|---------------|
|               |
|    screen     |
|               |
-----------------
|  <|   O  [ ]  |     <--- I need to remove these buttons!
-----------------

screenshot

like image 718
Ythalo Rossy Avatar asked May 07 '16 21:05

Ythalo Rossy


2 Answers

I created a package with fullscreen and more.

react-native-system-navigation-bar

Install

yarn add react-native-system-navigation-bar

or

npm install react-native-system-navigation-bar

Links

https://www.npmjs.com/package/react-native-system-navigation-bar

https://github.com/kadiraydinli/react-native-system-navigation-bar

like image 122
kadiraydinli Avatar answered Oct 12 '22 12:10

kadiraydinli


React Native doesn't provide a way to hide the android navigation bar directly, you would have to create a native module that use the Android Immersive mode introduced in Android 4.4 or use an existing module that do just that, and I found only one: react-native-full-screen

like image 21
YasserKaddour Avatar answered Oct 12 '22 13:10

YasserKaddour