mirror of
https://github.com/status-im/react-native-firebase.git
synced 2026-09-01 22:51:09 +00:00
[database][wip] on/off logic refactor - heavily still wip so things still to change
This commit is contained in:
@@ -81,10 +81,9 @@ public class Utils {
|
||||
* @param path
|
||||
* @param dataSnapshot
|
||||
* @param refId
|
||||
* @param listenerId
|
||||
* @return
|
||||
*/
|
||||
public static WritableMap snapshotToMap(String name, String path, DataSnapshot dataSnapshot, @Nullable String previousChildName, int refId, int listenerId) {
|
||||
public static WritableMap snapshotToMap(String name, String path, DataSnapshot dataSnapshot, @Nullable String previousChildName, int refId) {
|
||||
WritableMap snapshot = Arguments.createMap();
|
||||
WritableMap eventMap = Arguments.createMap();
|
||||
|
||||
@@ -111,7 +110,6 @@ public class Utils {
|
||||
eventMap.putString("path", path);
|
||||
eventMap.putMap("snapshot", snapshot);
|
||||
eventMap.putString("eventName", name);
|
||||
eventMap.putInt("listenerId", listenerId);
|
||||
eventMap.putString("previousChildName", previousChildName);
|
||||
|
||||
return eventMap;
|
||||
|
||||
Reference in New Issue
Block a user