Skip to content

[Android] Method for pausing application/Activity, and lifecycle hooks #5123

@jaysoo

Description

@jaysoo

There is a need for Android apps to pause instead of exiting completely when the user presses the back button.

Also, there should be support for lifecycle hooks similar to AppStateIOS. i.e. app resume, app pause, (app destroyed?)

I'm currently using my own module for this, but it'd be great to see this supported in core.

https://github.com/jaysoo/react-native-activity-android

Also: https://productpains.com/post/react-native/android-method-for-pausing-applicationactivity-and-lifecycle-hooks/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions