React Native Firebase
    Preparing search index...

    Functions module instance - returned from firebase.functions() or firebase.app().functions()

    interface Functions {
        app: ReactNativeFirebase.FirebaseApp;
        httpsCallable<
            RequestData = unknown,
            ResponseData = unknown,
            StreamData = unknown,
        >(
            name: string,
            options?: HttpsCallableOptions,
        ): HttpsCallable<RequestData, ResponseData, StreamData>;
        httpsCallableFromUrl<
            RequestData = unknown,
            ResponseData = unknown,
            StreamData = unknown,
        >(
            url: string,
            options?: HttpsCallableOptions,
        ): HttpsCallable<RequestData, ResponseData, StreamData>;
        useEmulator(host: string, port: number): void;
        useFunctionsEmulator(origin: string): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Changes this instance to point to a Cloud Functions emulator running locally.

      Parameters

      • host: string

        The host of the emulator, e.g. "localhost" or "10.0.2.2" for Android.

      • port: number

        The port of the emulator, e.g. 5001.

      Returns void

    • Changes this instance to point to a Cloud Functions emulator running locally.

      Parameters

      Returns void

      Use useEmulator(host, port) instead.

    Properties

    The FirebaseApp this module is associated with