discussions-and-proposals
discussions-and-proposals copied to clipboard
Enhanced lifecycle-aware module registry
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.