react-native-firebase / app/lib/modular
app/lib/modular
SDK_VERSION
constSDK_VERSION:"23.8.6"=sdkVersion
Defined in: app/lib/modular.ts:219
deleteApp()
deleteApp(
app):Promise<void>
Defined in: app/lib/modular.ts:38
Renders this app unusable and frees the resources of all associated services.
getApp()
getApp(
name?):FirebaseApp
Defined in: app/lib/modular.ts:109
Retrieves an instance of a Firebase app.
getApps()
getApps():
FirebaseApp[]
Defined in: app/lib/modular.ts:77
Gets the list of all initialized apps.
initializeApp()
initializeApp(
options,configOrName?):Promise<FirebaseApp>
Defined in: app/lib/modular.ts:91
Initializes a Firebase app with the provided options and name.
configOrName?
The optional name of the app, or config for the app to initialize (a name of '[DEFAULT]' will be used if omitted).
string | FirebaseAppConfig
jsonGetAll()
jsonGetAll():
Promise<{[key:string]:string|boolean; }>
Defined in: app/lib/modular.ts:164
Gets react-native-firebase specific "firebase.json" data
Returns
Promise<{[key: string]: string | boolean; }>
map of key / value pairs containing native firebase.json constants
metaGetAll()
metaGetAll():
Promise<{[key:string]:string|boolean; }>
Defined in: app/lib/modular.ts:153
Gets react-native-firebase specific "meta" data from native Info.plist / AndroidManifest.xml
Returns
Promise<{[key: string]: string | boolean; }>
map of key / value pairs containing native meta data
onLog()
onLog(
logCallback,options?):void
Defined in: app/lib/modular.ts:69
Sets log handler for VertexAI only currently.
preferencesClearAll()
preferencesClearAll():
Promise<void>
Defined in: app/lib/modular.ts:175
Clears react-native-firebase specific native preferences
preferencesGetAll()
preferencesGetAll():
Promise<{[key:string]:string|boolean; }>
Defined in: app/lib/modular.ts:186
Gets react-native-firebase specific native preferences
Returns
Promise<{[key: string]: string | boolean; }>
map of key / value pairs containing native preferences data
preferencesSetBool()
preferencesSetBool(
key,value):Promise<void>
Defined in: app/lib/modular.ts:199
Sets react-native-firebase specific native boolean preference
preferencesSetString()
preferencesSetString(
key,value):Promise<void>
Defined in: app/lib/modular.ts:212
Sets react-native-firebase specific native string preference
registerVersion()
registerVersion(
_libraryKeyOrName,_version,_variant?):Promise<void>
Defined in: app/lib/modular.ts:55
Registers a library's name and version for platform logging purposes.
setLogLevel()
setLogLevel(
logLevel):void
Defined in: app/lib/modular.ts:123
Sets the log level across all Firebase SDKs.
logLevel
LogLevelString
The log level to set ('debug', 'verbose', 'info', 'warn', 'error', 'silent').
setReactNativeAsyncStorage()
setReactNativeAsyncStorage(
asyncStorage):void
Defined in: app/lib/modular.ts:138
The AsyncStorage implementation to use for persisting data on 'Other' platforms.
If not specified, in memory persistence is used.
This is required if you want to persist things like Auth sessions, Analytics device IDs, etc.
