mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-05-06 08:23:35 +08:00
[both] continued work on multi app support - storage now full supported and auth WIP
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
* @flow
|
||||
*/
|
||||
export default class ReferenceBase {
|
||||
constructor(path: string) {
|
||||
constructor(path: string, module) {
|
||||
this._module = module;
|
||||
this.path = path || '/';
|
||||
}
|
||||
|
||||
@@ -17,4 +18,8 @@ export default class ReferenceBase {
|
||||
get key(): string | null {
|
||||
return this.path === '/' ? null : this.path.substring(this.path.lastIndexOf('/') + 1);
|
||||
}
|
||||
|
||||
get log() {
|
||||
return this._module.log;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user