discussions-and-proposals icon indicating copy to clipboard operation
discussions-and-proposals copied to clipboard

Enhanced lifecycle-aware module registry

Open matinzd opened this issue 10 months ago • 0 comments

This RFC proposes a framework to enhance the module registry in React Native by introducing a lifecycle-aware system for native modules. The goal is to address the current gap in handling application lifecycle events, similar to Flutter's FlutterApplicationLifeCycleDelegate on iOS and Application.ActivityLifecycleCallbacks on Android. The design enables seamless integration of native modules with application lifecycle events across iOS and Android platforms. There is also Expo Modules Core that handles this via ExpoAppDelegateSubscriber and ReactActivityLifecycleListener, but React Native does not have this by default and it requires Expo to be used in such cases.

A rendered version of the proposal can be read here

matinzd avatar Jan 06 '25 10:01 matinzd