React Native筆記(1) on Windows注意事項


1.要自己下react-native start去開Server



2.Watcher took too long to load,要去改timeout 時間
修改位置 : node_modules\react-native\packager\react-packager\src\FileWatcher\index.js line 17 MAX_WAIT_TIME to 50000 or higher ,i'm test on window passed.

3.Note that this option is available on devices running android 5.0+ (API 21).
Run adb reverse tcp:8081 tcp:8081
You can use Reload JS and other development options with no extra configuration


參考
react-native/LinuxWindowsSupport.md at master · facebook/react-native - https://goo.gl/fCYWDr
[android] windows npm start ERROR Watcher took too long to load · Issue #2841 · facebook/react-native - https://goo.gl/6BzW5C
Running On Device – React Native | A framework for building native apps using React - https://goo.gl/EpOlTc

留言