React Native

NOTE: It is suggested that you use v2.0.0 if you are using react-native (required for native modules through react-native-firebase)

In order to get v1.*.* working with react-native you must pass in AsyncStorage from react-native as done in the material example:

import { createStore, compose } from 'redux'
import rootReducer from './reducer' // reducer containing firebaseStateReducer
import { reactReduxFirebase } from 'react-redux-firebase'
import { AsyncStorage } from 'react-native'

const fbConfig = {} // firebase config
const createStoreWithMiddleware = compose(
      userProfile: 'users',
      enableLogging: false,
      ReactNative: { AsyncStorage },
const store = createStoreWithMiddleware(rootReducer)

NOTE: Firebase is initialized internally for v1.*.*, so you DO NOT want to initialize Firebase yourself outside of react-redux-firebase.

Full project source: react-native complete example app

Native Modules

If you are looking to use native modules (using react-native-firebase or other), please visit the v2.0.0 docs.

results matching ""

    No results matching ""