设置反应原生环境时出现问题
问题描述:
Unable to resolve module `AccessibilityInfo` from `C:\Users\v89\awesomeProject\node_modules\react-native\Libraries\react-native\react-native-implementation.js`: Module AccessibilityInfo does not exist in the Haste module map.
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset Metro Bundler cache: `rm -rf $TMPDIR/react-*` or `npm start -- --reset-cache`. 4. Remove haste cache: `rm -rf $TMPDIR/haste-map-react-native-packager-*`.
我尝试了什么:
What I have tried:
I tried everything recommended on internet, nothing is working. I am totally stuck on it. Please help
答
TMPDIR / react- *`或`npm start - --reset-cache`。 4.删除急速缓存:`rm -rf
TMPDIR/react-*` or `npm start -- --reset-cache`. 4. Remove haste cache: `rm -rf
TMPDIR / haste-map-react-native-packager- *`。
TMPDIR/haste-map-react-native-packager-*`.
我尝试过的事情:
What I have tried:
I tried everything recommended on internet, nothing is working. I am totally stuck on it. Please help
react-native init ProjectName --version 0.55.4
这对我有用!
This worked for me!