[js][database] added enableLogging(boolean) method to fix #525

This commit is contained in:
Salakar
2017-11-08 15:58:44 +00:00
parent c6faefc09f
commit 7efb14f5b0

View File

@@ -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);
}
},
};