[module] Export module functions directly

This commit is contained in:
Andrew Crites 2018-02-14 15:32:15 -05:00
parent 3e052a7e85
commit adba9467e7
No known key found for this signature in database
GPG Key ID: B6AFFDD883E2E527
2 changed files with 16 additions and 1 deletions

View File

@ -4,6 +4,7 @@
import firebase from './modules/core/firebase'; import firebase from './modules/core/firebase';
export default firebase; export default firebase;
export * from './modules/core/firebase';
/* /*
* Export App types * Export App types

View File

@ -240,4 +240,18 @@ class Firebase {
} }
} }
export default new Firebase(); const firebaseApp = new Firebase();
export default firebaseApp;
export const admob = firebaseApp.admob;
export const analytics = firebaseApp.analytics;
export const auth = firebaseApp.auth;
export const config = firebaseApp.config;
export const crash = firebaseApp.crash;
export const database = firebaseApp.database;
export const fabric = firebaseApp.fabric;
export const firestore = firebaseApp.firestore;
export const links = firebaseApp.links;
export const messaging = firebaseApp.messaging;
export const perf = firebaseApp.perf;
export const storage = firebaseApp.storage;
export const utils = firebaseApp.utils;