From da05345c3376b3d88ffd6fe2c134219edcbd573c Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Tue, 16 Jan 2024 03:51:07 -0800 Subject: [PATCH] Fix instacrash on RN-Tester + Bridgeless (#42295) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42295 Fix instacrash on RN-Tester + Bridgeless Changelog: [Internal] [Changed] - Fix instacrash on RN-Tester + Bridgeless Reviewed By: cipolleschi Differential Revision: D52797547 fbshipit-source-id: 823260865d420147ed264b101634ddd105237283 --- .../com/facebook/react/fabric/EmptyReactNativeConfig.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/EmptyReactNativeConfig.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/EmptyReactNativeConfig.kt index 0d63b83f941..c089552324b 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/EmptyReactNativeConfig.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/EmptyReactNativeConfig.kt @@ -4,6 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ + package com.facebook.react.fabric import com.facebook.jni.HybridData @@ -26,4 +27,10 @@ class EmptyReactNativeConfig : ReactNativeConfig { external override fun getString(param: String): String external override fun getDouble(param: String): Double + + companion object { + init { + FabricSoLoader.staticInit() + } + } }