GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ReScript React Native
  • Docs
  • Components
  • APIs
  • Blog
  • GitHub
  • AccessibilityInfo
  • ActionSheetIOS
  • Alert
  • Animated
  • AnimationFrame
  • AppRegistry
  • AppState
  • BackHandler

This view

  • Original page
  • New address

GeezerVison is showing rescript-react-native.github.io — AppState | ReScript React Native

Types​

type t = [#active | #background | #inactive | #unknown | #extension]

Values​

AppState.currentState // t
AppState.isAvailable // bool

Methods​

addEventListener​

addEventListener: [
| #change(t => unit)
| #focus(unit => unit)
| #blur(unit => unit)
| #memoryWarning(unit => unit)
] => EventSubscription.t
React.useEffect0(() => {
let sub = AppState.addEventListener(#change(next => Console.log(next)))
Some(() => sub->EventSubscription.remove)
})
  • Types
  • Values
  • Methods
    • addEventListener
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.