From e9b39795b8301312cd060d06bec2bca2de102313 Mon Sep 17 00:00:00 2001 From: Salakar Date: Sat, 26 Aug 2017 02:42:46 +0100 Subject: [PATCH] [docs] remove 'app' docs from v2 docs --- docs/v2/core/app.md | 34 ---------------------------------- docs/v2/core/firebase.md | 10 ---------- 2 files changed, 44 deletions(-) delete mode 100644 docs/v2/core/app.md delete mode 100644 docs/v2/core/firebase.md diff --git a/docs/v2/core/app.md b/docs/v2/core/app.md deleted file mode 100644 index 5d923a55..00000000 --- a/docs/v2/core/app.md +++ /dev/null @@ -1,34 +0,0 @@ -# App - firebase.app(): FirebaseApp - -RNFirebase supports both initializing apps natively and also via js code over the RN bridge. - -Apps initialized natively are available immediately at app runtime, there is no need to call `initializeApp` for them. - -For example, to access the default app initialized via the `Google-Services` `plist` or `json` file: -```javascipt -import firebase from 'react-native-firebase'; - -const defaultApp = firebase.app(); - -defaultApp.database().ref('foobar').once('value', (snapshot) => { - // snapshot from default app -}); - -// get the default app name/options that were initialized natively -console.log("name", defaultApp.name); -console.log("apiKey", defaultApp.options.apiKey); -console.log("applicationId", defaultApp.options.applicationId); -console.log("databaseUrl", defaultApp.options.databaseUrl); -console.log("messagingSenderId", defaultApp.options.messagingSenderId); -console.log("projectId", defaultApp.options.projectId); -console.log("storageBucket", defaultApp.options.projectId); -``` - - -TODO api ref docs: - - - name: String - - options: Object - - delete(): Promise - - diff --git a/docs/v2/core/firebase.md b/docs/v2/core/firebase.md deleted file mode 100644 index 43cd33e8..00000000 --- a/docs/v2/core/firebase.md +++ /dev/null @@ -1,10 +0,0 @@ -# Firebase - -TODO api ref docs: - - - apps(): Array - - app(): FirebaseApp - - initializeApp(): FirebaseApp - - setLogLevel() - - SDK_VERSION: String - - googleApiAvailability: Object