Module AppState-BsReactNative

type state =
| Active
| Background
| Inactive
;

AppState can tell you if the app is in the foreground or background, and notify you when the state changes.

AppState is frequently used to determine the intent and proper behavior when handling push notifications.

You can read more on AppState API usage in official docs: https://facebook.github.io/react-native/docs/appstate

let currentState: unit => state;
let addEventListener: string => (unit => unit) => unit;
let removeEventListener: string => (unit => unit) => unit;