I am getting two navigation bars in my app. Structure is as follows:
store.js
const createStoreWithNavigation = createNavigationEnabledStore({
createStore,
navigationStateKey: 'navigation'
});
// middleware that logs actions only in DEV mode
const loggerMiddleware = createLogger({ predicate: (getState, action) => __DEV__ });
//configure redux store
function configureStore(initialState) {
//this is to compose extra middleware functions in redux
const enhancer = compose(
applyMiddleware(
thunkMiddleware, // lets us dispatch() functions
loggerMiddleware,
),
);
return createStoreWithNavigation(
combineReducers({
navigation: NavigationReducer,
// other reducers
appData: reducer
}),
initialState,
enhancer
);
}//end of configureStore
//run the configureStore function and create store by passing a blank initial state
const store = configureStore( {} );
export default store;
Here I will execute some logic and load the next screen which will use drawer navigation. For now I am just pushing the drawer route but I am getting 2 navigation bars.
Hi,
I am getting two navigation bars in my app. Structure is as follows:
store.js
App.js
splashscreen route loads AppContainer.js
Here I will execute some logic and load the next screen which will use drawer navigation. For now I am just pushing the drawer route but I am getting 2 navigation bars.
drawer.js
Can someone tell me what's wrong.