You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create Redux middleware to hide keyboard (if open) when navigating screen
// Hide keyboard middlewareconstkeyboardMiddleware=store=>next=>action=>{// If action is navigate screenif(action.type=='NAVIGATE_SCREEN'){Keyboard.dismiss()}returnnext(action)}
Apply to your store
// Hide keyboard middlewareconstkeyboardMiddleware=store=>next=>action=>{// If action is navigate screenif(action.type=='NAVIGATE_SCREEN'){Keyboard.dismiss()}returnnext(action)}// Disable Logger in productionconstmiddleware=(global.__DEV__) ? [thunk,logger] : [thunk];exportdefaultconfigureStore=(initialState)=>{returncreateStore(rootReducer,initialState,applyMiddleware(...middleware,keyboardMiddleware))}