mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
Merge branch 'master' of https://github.com/invertase/react-native-firebase
# Conflicts: # lib/utils/SyncTree.js
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
* @flow
|
||||
* Firestore representation wrapper
|
||||
*/
|
||||
import { NativeModules } from 'react-native';
|
||||
|
||||
import ModuleBase from './../../utils/ModuleBase';
|
||||
import CollectionReference from './CollectionReference';
|
||||
import DocumentReference from './DocumentReference';
|
||||
@@ -143,4 +145,9 @@ export default class Firestore extends FirestoreInternalModule {
|
||||
export const statics = {
|
||||
FieldValue,
|
||||
GeoPoint,
|
||||
enableLogging(bool) {
|
||||
if (NativeModules[Firestore._NATIVE_MODULE]) {
|
||||
NativeModules[Firestore._NATIVE_MODULE].enableLogging(bool);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user