Module StatusBar-BsReactNative

let make: ?⁠animated:bool => ?⁠barStyle:[ `darkContent | `default | `lightContent ] => ?⁠hidden:bool => ?⁠backgroundColor:string => ?⁠translucent:bool => ?⁠networkActivityIndicatorVisible:bool => ?⁠showHideTransition:[ `fade | `none | `slide ] => array(ReasonReact.reactElement) => ReasonReact.component(ReasonReact.stateless, ReasonReact.noRetainedProps, unit);

Component to control the app status bar. You can read more on StatusBar component usage in official docs: https://facebook.github.io/react-native/docs/statusbar

Props

animated
~animated: bool=?,
barStyle
barStyle: [
  | `darkContent
  | `default
  | `lightContent
]=?
hidden
~hidden: bool=?
backgroundColor
~backgroundColor: string=?
translucent
~translucent: bool=?
networkActivityIndicatorVisible
~networkActivityIndicatorVisible: bool=?
showHideTransition
showHideTransition: [
  | `fade
  | `none
  | `slide
]=?

Methods

setHidden

Show or hide the status bar

let setHidden: bool => ?⁠animation:[ `fade | `none | `slide ] => unit => unit;
setBarStyle

Set the status bar style

let setBarStyle: [ `darkContent | `default | `lightContent ] => ?⁠animated:bool => unit => unit;
setNetworkActivityIndicatorVisible

Control the visibility of the network activity indicator

let setNetworkActivityIndicatorVisible: bool => unit;
setBackgroundColor

Set the background color for the status bar

let setBackgroundColor: string => ?⁠animated:bool => unit => unit;
setTranslucent

Control the translucency of the status bar

let setTranslucent: bool => unit;