Remove system menu bar from react native android app


My problem is simple and I have been unable to find a solution. The menu bar is very annoying in my app and I am hoping that there is a way to remove it. <a href="https://i.stack.imgur.com/HBzxx.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/HBzxx.png" data-original="https://i.stack.imgur.com/HBzxx.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>


Looking at <a href="http://developer.android.com/intl/es/training/system-ui/navigation.html" rel="nofollow">Hiding the Navigation Bar</a> I found this:


You can hide the navigation bar on Android 4.0 and higher using the SYSTEM_UI_FLAG_HIDE_NAVIGATION flag. This snippet hides both the navigation bar and the status bar:

</blockquote> View decorView = getWindow().getDecorView(); // Hide both the navigation bar and the status bar. // SYSTEM_UI_FLAG_FULLSCREEN is only available on Android 4.1 and higher, but as // a general rule, you should design your app to hide the status bar whenever you // hide the navigation bar. int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN; decorView.setSystemUiVisibility(uiOptions);

I do not know if that's exactly what you was looking for, but you can test it.


I suggest you read more about native modules, it enables you to write native code and access it from JS.

<a href="http://facebook.github.io/react-native/docs/native-modules-android.html#content" rel="nofollow">http://facebook.github.io/react-native/docs/native-modules-android.html#content</a>

Also the StatusBar module is very similar to what you want to do here, you can have a look at the source.

<a href="https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java#L110" rel="nofollow">https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java#L110</a>


  • WearableListView ClassNotFoundException Support v4 ArrayMap
  • Svd recomposition with Mathnet numerics library seems wrong
  • SSRS 2008 R2 Bug? Still? Dynamically hiding column or tablix and exporting to CSV
  • Json object integrate with android
  • JScrollPane problem
  • Good pattern for hiding ion-nav-bar on login and not having a back button just after login?
  • FirebaseRecyclerAdapter Give NoSuchMethodException If Build using Release Keystore
  • Python regex catastrophic backtracking
  • Python Regex - Find contents from a string between two '*'
  • Example for subscribing for BLE indicate in android
  • Use OAuth2 for authentication + compatibility with google.appengine.api.users service
  • Mysql UPDATE ON DUPLICATE KEY only inserting
  • dismissModalViewControllerAnimated nonatomic?
  • Is 'if element in aList' possible with Django templates?
  • How to remove fragment from fragment manager when activity is restored after being destroyed
  • Is there a way to stop this default insert in rails
  • IIS7 Application Request Routing HTTPS
  • Check thread status while leaving it in a waitable state
  • C++ development on linux Code::Blocks, EMACS or GVIM [closed]
  • How can I alert message in Servlet code and sendredirect to JSP page?
  • setTimeOut and local function
  • how to translate xml using xslt with complex rules
  • How to set `secure` and `httpOnly` for Plones `__ac` cookie?
  • How does ActiveSupport do month sums?
  • Why can't I use non-integral types with switch [duplicate]
  • You tube videos are not playing
  • Delphi: Where is the shortcut that started the application? [duplicate]
  • Detecting # in Scheme list
  • SQL Query - Table Joining Problems
  • Can't remove headers after they are sent
  • Python delete lines of text line #1 till regex
  • Parse a date string in a specific locale (not timezone!)
  • How to use JavaScript to determine whether a file exists in a directory?
  • How do I pass the string value parameter of the selected list item from an auto-populated dropdown l
  • How to get address from latitude and longitude android google map v2 [duplicate]
  • Can I have the cursor start on a particular column by default in jqgrid's edit mode?
  • Compare two NSDates in iPhone
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • Getting Messege Twice Using IMvxMessenger
  • How to load view controller without button in storyboard?