HomePhabricator
Diffusion Comm 6439d2668b91

[native] lifecycleState to enum, update useIsAppForegrounded

Description

[native] lifecycleState to enum, update useIsAppForegrounded

Summary: Made the switch from boolean to LifecycleState enum for state.lifecycleState, updated useIsAppForegrounded so 'prior' uses of the state.foreground property continue to work as before.

Test Plan: Tested on iOS and android simulator and things work as expected. Will take a thorough look at all of the uses of foreground/NativeAppState with the next diff to ensure there are no regressions.

Reviewers: ashoat, palys-swm

Reviewed By: ashoat

Subscribers: KatPo, zrebcu411, Adrian, subnub

Differential Revision: https://phabricator.ashoat.com/D873

Details

Provenance
atulAuthored on Mar 10 2021, 2:40 AM
Reviewer
ashoat
Differential Revision
Restricted Differential Revision
Parents
rCOMMcb3994570ca7: Rename `state.foreground` to `state.lifecycleState`
Branches
Unknown
Tags
Unknown