set prefersStatusBarHidden true react native code example Example: hide status bar react native <StatusBar hidden />