Page MenuHomePhabricator

D5925.diff
No OneTemporary

D5925.diff

diff --git a/patches/react-native-firebase+5.6.0.patch b/patches/react-native-firebase+5.6.0.patch
--- a/patches/react-native-firebase+5.6.0.patch
+++ b/patches/react-native-firebase+5.6.0.patch
@@ -1,3 +1,22 @@
+diff --git a/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java b/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java
+index d0836e2..5917d97 100644
+--- a/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java
++++ b/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java
+@@ -213,4 +213,14 @@ public class RNFirebaseMessaging extends ReactContextBaseJavaModule {
+ }
+ }
+ }
++
++ @ReactMethod
++ public void addListener(String eventName) {
++ // Required by NativeEventEmitter
++ }
++
++ @ReactMethod
++ public void removeListeners(Integer count) {
++ // Required by NativeEventEmitter
++ }
+ }
diff --git a/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java b/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java
index c9d63ff..ef725ad 100644
--- a/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java
@@ -11,6 +30,25 @@
);
}
+diff --git a/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java b/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java
+index 7115b38..9f72acf 100644
+--- a/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java
++++ b/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java
+@@ -480,4 +480,14 @@ public class RNFirebaseNotifications extends ReactContextBaseJavaModule implemen
+ }
+ }
+ }
++
++ @ReactMethod
++ public void addListener(String eventName) {
++ // Required by NativeEventEmitter
++ }
++
++ @ReactMethod
++ public void removeListeners(Integer count) {
++ // Required by NativeEventEmitter
++ }
+ }
diff --git a/node_modules/react-native-firebase/dist/common/commonTypes.flow.js.flow b/node_modules/react-native-firebase/dist/common/commonTypes.flow.js.flow
index 228a72d..982a997 100644
--- a/node_modules/react-native-firebase/dist/common/commonTypes.flow.js.flow

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 6:11 AM (20 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2583211
Default Alt Text
D5925.diff (2 KB)

Event Timeline