We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this is my actual code :
store.js
import { createStore, compose, applyMiddleware } from 'redux'; import { persistStore, persistCombineReducers } from 'redux-persist'; import storage from 'redux-persist/lib/storage'; import { createLogger } from 'redux-logger'; import rootReducers from "test/src/redux/reducers"; const config = { key: 'root', storage, }; const middleware = []; const reducers = persistCombineReducers(config, rootReducers); const enhancers = [applyMiddleware(...middleware)]; const initialState = {}; const persistConfig = { enhancers }; const store = createStore(reducers, undefined, compose(...enhancers)); const persistor = persistStore(store, persistConfig, () => {}); const configureStore = () => { return { persistor, store }; } export default configureStore;
App.js
import configureStore from "test/src/redux/store"; const { persistor, store } = configureStore(); const MyTabView = TabNavigator({ ... }); export default class App extends React.PureComponent { ... render() { return ( <Provider store={store}> <PersistGate loading={<ActivityIndicator />} persistor={persistor}> <MyTabView /> </PersistGate> </Provider> ); } }
how to integrate your lib with Provider and PersistGate instead of AppNavigator
Version: npm version or "master"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce
this is my actual code :
store.js
App.js
Expected behaviour
how to integrate your lib with Provider and PersistGate instead of AppNavigator
Environment
react-navigation-is-focused-hoc
Version: npm version or "master"
The text was updated successfully, but these errors were encountered: