mirror of
https://github.com/status-im/react-native-firebase.git
synced 2026-08-31 06:01:09 +00:00
[js][android] database sync tree implementation with adjusted tests
This commit is contained in:
@@ -25,8 +25,8 @@ const NATIVE_MODULE_EVENTS = {
|
||||
'onAuthStateChanged',
|
||||
],
|
||||
Database: [
|
||||
'database_on_event',
|
||||
'database_cancel_event',
|
||||
// 'database_on_event',
|
||||
// 'database_cancel_event',
|
||||
'database_transaction_event',
|
||||
// 'database_server_offset', // TODO
|
||||
],
|
||||
@@ -47,11 +47,11 @@ export default class ModuleBase {
|
||||
* @param withEventEmitter
|
||||
*/
|
||||
constructor(firebaseApp, options, moduleName, withEventEmitter = false) {
|
||||
this._options = Object.assign({}, DEFAULTS[moduleName] || {}, options);
|
||||
this._module = moduleName;
|
||||
this._firebaseApp = firebaseApp;
|
||||
this._appName = firebaseApp._name;
|
||||
this._namespace = `${this._appName}:${this._module}`;
|
||||
this._options = Object.assign({}, DEFAULTS[moduleName] || {}, options);
|
||||
|
||||
// check if native module exists as all native
|
||||
// modules are now optionally part of build
|
||||
|
||||
Reference in New Issue
Block a user