Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3364995
D5925.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D5925.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5925: [native] [30/40] RN 0.70: Patch react-native-firebase to avoid Android NativeEventEmitter warning
Attached
Detach File
Event Timeline
Log In to Comment