Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Using new react-native config syntax in example.
  • Loading branch information
prescottprue committed Mar 26, 2017
commit 8c40703c17505f045acc8da02eb22c3371a100c7
3 changes: 1 addition & 2 deletions examples/complete/react-native/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export default function configureStore (initialState, history) {
{
userProfile: 'users',
enableLogging: false,
enableRedirectHandling: false,
rn: { AsyncStorage },
ReactNative: { AsyncStorage },
}
),
typeof window === 'object' && typeof window.devToolsExtension !== 'undefined' ? window.devToolsExtension() : f => f
Expand Down
1 change: 1 addition & 0 deletions src/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default (fbConfig, otherConfig) => next =>

// Handle react-native
if (configs.ReactNative) {
configs.enableRedirectHandling = false
const { AsyncStorage } = configs.ReactNative
// Stub firebase's internal's with react-native (based on firebase's react-native index file)
firebase.INTERNAL.extendNamespace({
Expand Down