mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 03:59:18 +08:00
[types] Export app, auth, database and firestore types
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
import { NativeEventEmitter, NativeModules } from 'react-native';
|
||||
|
||||
import { SharedEventEmitter } from './events';
|
||||
import DatabaseSnapshot from '../modules/database/snapshot';
|
||||
import DatabaseReference from '../modules/database/reference';
|
||||
import DataSnapshot from '../modules/database/DataSnapshot';
|
||||
import DatabaseReference from '../modules/database/Reference';
|
||||
import { isString, nativeToJSError } from '../utils';
|
||||
|
||||
type Listener = DatabaseSnapshot => any;
|
||||
type Listener = DataSnapshot => any;
|
||||
|
||||
type Registration = {
|
||||
key: string,
|
||||
@@ -83,7 +83,7 @@ class SyncTree {
|
||||
// forward on to users .on(successCallback <-- listener
|
||||
return SharedEventEmitter.emit(
|
||||
eventRegistrationKey,
|
||||
new DatabaseSnapshot(registration.ref, snapshot),
|
||||
new DataSnapshot(registration.ref, snapshot),
|
||||
previousChildName
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user