Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 反应导航热重新加载不工作_React Native_Redux_React Redux_React Navigation - Fatal编程技术网

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