React native 反应导航热重新加载不工作
我开始用React native 反应导航热重新加载不工作,react-native,redux,react-redux,react-navigation,React Native,Redux,React Redux,React Navigation,我开始用react-navigation重构我的整个react本机导航,现在它工作正常,但唯一的问题是现在的应用程序不支持热重新加载。每次我保存与路由相关的文件时。它给我一个热重新加载错误:hot.acceptCallback不是函数。请回复我,谁已经解决了这个问题 **导航-reducer.js import AppNavigator from '../RouteConfigs'; const initialState = AppNavigator.router.getStateForAct
react-navigation
重构我的整个react本机导航,现在它工作正常,但唯一的问题是现在的应用程序不支持热重新加载。每次我保存与路由相关的文件时。它给我一个热重新加载错误:hot.acceptCallback不是函数
。请回复我,谁已经解决了这个问题
**导航-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;
};
现在遇到同样的问题,您找到解决方案了吗?您的根组件不应该是功能组件,它应该扩展
react.component