react-native-vector-icons使用時(shí)遇到的問(wèn)題?
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)`
按照gitthub使用教程配置好項(xiàng)目之后鸠项,卻始終報(bào)錯(cuò),
原因可能是React-Native子姜,React祟绊,react-native-vector-icons的版本問(wèn)題。
解決方法刪除/node_modules/react-native/local-cli/core/__fixtures__/files目錄下的package.json文件即可哥捕。刪除前最好備份該文件牧抽!