From 4dadd507aeb8d5c69adde0f1972a2e8d3dcfc1d2 Mon Sep 17 00:00:00 2001 From: Linh Vo Date: Sat, 16 Nov 2024 16:48:22 +0700 Subject: [PATCH] fix: app crash when enable new architecture --- .../FullScreenNotificationIncomingCallModule.java | 1 - .../IncomingCallActivity.java | 1 - 2 files changed, 2 deletions(-) diff --git a/android/src/main/java/com/reactnativefullscreennotificationincomingcall/FullScreenNotificationIncomingCallModule.java b/android/src/main/java/com/reactnativefullscreennotificationincomingcall/FullScreenNotificationIncomingCallModule.java index 07ae4c8..7f6e7af 100644 --- a/android/src/main/java/com/reactnativefullscreennotificationincomingcall/FullScreenNotificationIncomingCallModule.java +++ b/android/src/main/java/com/reactnativefullscreennotificationincomingcall/FullScreenNotificationIncomingCallModule.java @@ -88,7 +88,6 @@ public void hideNotification() { getReactApplicationContext().stopService(intent); } - @ReactMethod public static void sendEventToJs(String eventName, @Nullable WritableMap params) { reactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(eventName, params); } diff --git a/android/src/main/java/com/reactnativefullscreennotificationincomingcall/IncomingCallActivity.java b/android/src/main/java/com/reactnativefullscreennotificationincomingcall/IncomingCallActivity.java index 1c21da2..b360443 100644 --- a/android/src/main/java/com/reactnativefullscreennotificationincomingcall/IncomingCallActivity.java +++ b/android/src/main/java/com/reactnativefullscreennotificationincomingcall/IncomingCallActivity.java @@ -97,7 +97,6 @@ protected void onCreate(Bundle savedInstanceState) { Fragment reactNativeFragment = new ReactFragment.Builder() .setComponentName(mainComponent) .setLaunchOptions(bundle) - .setFabricEnabled(false) .build(); getSupportFragmentManager()