React Navigation Hot reload not working

Viewed 1274

I started to refactor my entire react native navigation with react-navigation and now its working fine, but only thing is now app doesn't support for hot reloading. Every time I save a file that related to route. It give me an hot reload error: hot.acceptCallback is not a function. Please reply me, who has fixed this issue already.

** navigation-reducer.js

import AppNavigator from '../RouteConfigs';

const initialState = AppNavigator.router.getStateForAction(AppNavigator.router.getActionForPathAndParams('Startup'));

export default (state = initialState, action) => {
  const nextState = AppNavigator.router.getStateForAction(action, state);

  return nextState || state;
};
0 Answers
Related