mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[js][database] added enableLogging(boolean) method to fix #525
This commit is contained in:
@@ -72,4 +72,9 @@ export const statics = {
|
||||
ServerValue: NativeModules.RNFirebaseDatabase ? {
|
||||
TIMESTAMP: NativeModules.RNFirebaseDatabase.serverValueTimestamp || { '.sv': 'timestamp' },
|
||||
} : {},
|
||||
enableLogging(bool) {
|
||||
if (NativeModules[Database._NATIVE_MODULE]) {
|
||||
NativeModules[Database._NATIVE_MODULE].enableLogging(bool);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user