React-native-vector-icons: use react-native-vector-icons in android show errors

Created on 8 Mar 2018  路  4Comments  路  Source: oblador/react-native-vector-icons

import Icon from 'react-native-vector-icons/Ionicons';

i was only import this modules , the errors show modules was not fount

 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
duplicate wontfix

Most helpful comment

ok
rm ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json
will be ok.

All 4 comments

me too.please help.

import IconSimple from 'react-native-vector-icons/SimpleLineIcons';

error: bundling failed: Error: While resolving module `react-native-vector-icons/SimpleLineIcons`, the Haste package `react-native-vector-icons` was found. However the module `SimpleLineIcons` could not be found within the package. Indeed, none of these files exist:
    "react": "16.2.0",
    "react-native": "0.52.0",
    "react-native-vector-icons": "^4.5.0",

Dup of #626

ok
rm ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json
will be ok.

@MoOx @wuyunqiang thanks I have resolved the problem

Was this page helpful?
0 / 5 - 0 ratings