React Native Firebase
    Preparing search index...
    interface Module {
        apps: ReactNativeFirebase.FirebaseApp[];
        SDK_VERSION: string;
        utils: Utils.Module;
        app(name?: string): ReactNativeFirebase.FirebaseApp;
        initializeApp(
            options: FirebaseAppOptions,
            config?: FirebaseAppConfig,
        ): Promise<ReactNativeFirebase.FirebaseApp>;
        initializeApp(
            options: FirebaseAppOptions,
            name?: string,
        ): Promise<ReactNativeFirebase.FirebaseApp>;
        setLogLevel(logLevel: LogLevelString): void;
        setReactNativeAsyncStorage(asyncStorage: ReactNativeAsyncStorage): void;
    }
    Index

    Methods

    • Set the log level across all modules. Only applies to iOS currently, has no effect on Android. Should be one of 'error', 'warn', 'info', or 'debug'. Logs messages at the configured level or lower (less verbose / more important). Note that if an app is running from AppStore, it will never log above info even if level is set to a higher (more verbose) setting. Note that iOS is missing firebase-js-sdk log levels 'verbose' and 'silent'. 'verbose' if used will map to 'debug', 'silent' has no valid mapping and will return an error if used.

      Parameters

      Returns void

    • 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.

      Parameters

      Returns void

    Properties

    A (read-only) array of all the initialized Apps.

    SDK_VERSION: string

    The current React Native Firebase version.

    utils: Utils.Module

    Utils provides a collection of utilities to aid in using Firebase and related services inside React Native, e.g. Test Lab helpers and Google Play Services version helpers.