React-native 不会在模拟器中重新加载 ios 应用程序

React-native doesn't reload ios application in simulator

我有重新加载应用程序的问题,

react-native-cli: 1.2.0 反应本机:0.37.0 守望者:4.7.0

index.ios.js 文件。

import React from 'react';
import ReactNative, {View,Text} from 'react-native';
import Header  from './src/components/header';

const App = () => {
    return (
        <View>
            <Header headerText={'Products '}/>
            <Text>Test</Text>
        </View>
    );
};

ReactNative.AppRegistry.registerComponent('ditrack', ()=> App);

then run command react-native run-ios. App simulator loaded but don't update any changes in code for ex.

 <Text>Test</Text> to <Text> OTHER Test</Text>

I already reviewed several issues in Whosebug and github but it did't helped me

我找到了解决方案。我用 sudo 做了 sudo pkill -9 -x fseventsd,然后 运行 命令 react-native startsudo react-native start