react-native-vector-icons使用时遇到的问题
error: bundling failed: Error: While resolving module `react-native-vector-icons/Ionicons`, the Haste package `react-native-vector-icons` was found. However the module `Ionicons` could not be found within the package. Indeed, none of these files exist:
* `/Users/user/Documents/react_navigation_redux_app/node_modules/react-native/local-cli/core/__fixtures__/files/Ionicons(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
* `/Users/user/Documents/react_navigation_redux_app/node_modules/react-native/local-cli/core/__fixtures__/files/Ionicons/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
解决办法:
1. 版本的问题,使用npm命令重新安装react-native-vector-icons 依赖包。