about summary refs log tree commit diff
path: root/patches/expo-modules-core+1.12.11.patch
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-06-06 19:21:38 +0100
committerGitHub <noreply@github.com>2024-06-06 11:21:38 -0700
commitac25e43befef6a570c9af2d3c063a554d74ef6b6 (patch)
treed494e3294a0309c04b343929e3c53da0712940a1 /patches/expo-modules-core+1.12.11.patch
parent094c08ea60e95438a991354cd0f5ec9e42b3deb1 (diff)
downloadvoidsky-ac25e43befef6a570c9af2d3c063a554d74ef6b6.tar.zst
Patch Expo Modules for Android crash (#4398)
* Patch Expo Modules for Android crash

* rm intermediaries, add a readme

---------

Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'patches/expo-modules-core+1.12.11.patch')
-rw-r--r--patches/expo-modules-core+1.12.11.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/patches/expo-modules-core+1.12.11.patch b/patches/expo-modules-core+1.12.11.patch
new file mode 100644
index 000000000..4878bb9f7
--- /dev/null
+++ b/patches/expo-modules-core+1.12.11.patch
@@ -0,0 +1,14 @@
+diff --git a/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/NativeModulesProxy.java b/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/NativeModulesProxy.java
+index bb74e80..0aa0202 100644
+--- a/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/NativeModulesProxy.java
++++ b/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/NativeModulesProxy.java
+@@ -90,8 +90,8 @@ public class NativeModulesProxy extends ReactContextBaseJavaModule {
+     mModuleRegistry.ensureIsInitialized();
+
+     KotlinInteropModuleRegistry kotlinModuleRegistry = getKotlinInteropModuleRegistry();
+-    kotlinModuleRegistry.emitOnCreate();
+     kotlinModuleRegistry.installJSIInterop();
++    kotlinModuleRegistry.emitOnCreate();
+
+     Map<String, Object> constants = new HashMap<>(3);
+     constants.put(MODULES_CONSTANTS_KEY, new HashMap<>());