C
C
Coder3212018-04-12 13:36:37
React Native
Coder321, 2018-04-12 13:36:37

React-native-vector-icons not importing correctly?

Downloaded react-native-vector-icons, trying to import

import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';

them and gives an error that the path "@expo/react-native-vector-icons" does not exist, if you connect directly "../node_modules/react-native-vector-icons" then everything is fine, the question is why it searches first in the "@Expo" folder?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shane Matte, 2020-05-12
@mattedev

react-native-vector-icons don't work with expo
for expo you can use @expo/vector-icons

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question