prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 558 forks source link

Assign remoteConfig on firebase instance #1129

Open dancixx opened 3 years ago

dancixx commented 3 years ago

I have imported the remote-config module from firebase and call after the initialize method, but I don't have access to remoteConfig method when I try to use useFirebase. Do you have any idea what can be wrong?

// core imports
import firebase from 'firebase/app';
import 'firebase/firestore';
import 'firebase/database';
import 'firebase/auth';
import 'firebase/storage';
import 'firebase/functions';
import 'firebase/remote-config';

interface ConfigProps {
    apiKey: string;
    authDomain: string;
    databaseURL: string;
    projectId: string;
    storageBucket: string;
    messagingSenderId: string;
    appId: string;
}

firebase.initializeApp(config);
firebase.remoteConfig()
firebase.functions()
firebase.firestore().settings({ experimentalForceLongPolling: true });

export default firebase;