mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: During the Expo QA process, we discovered that `ReactContext.reactApplicationContext.nativeModules` always returns an empty list (https://github.com/expo/expo/blob/4e2bbb23edda74d0e24756fd1735b8763e38f7a7/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/ReactExtensions.kt#L12). This happens because, during object creation, the `reactInstance` is always null. ## Changelog: [ANDROID] [FIXED] - Fix `ReactHostImpl.nativeModules` always returning an empty list Pull Request resolved: https://github.com/facebook/react-native/pull/52986 Test Plan: - RN tester compiles ✅ Reviewed By: mdvacca Differential Revision: D79451613 Pulled By: cortinico fbshipit-source-id: d5341bcc1193eb948db4e99f16ba32a63073a6db