Skip to content

How to detect app is minimize or close state? #12288

Answered by jonthysell
rahulmishra1991 asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like the RN AppState API doesn't really consider that: https://reactnative.dev/docs/appstate#app-states

You might consider writing your own native module to crate your own JS events for this state change and have them fire when the native close/minimize event happens.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rahulmishra1991
Comment options

@chrisglein
Comment options

Answer selected by chrisglein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants