The Expo SDK requires Expo to run. i am beginner in react-native?

Kiran Patel :

I am an experienced android developer and started learning react native. I am using ubuntu to make a project. I used code like this one react-native init myprojectand am using visual studio code for code editor.

To run a project on my physical device I run adb devices on the terminal, change directory to project directory then I start localhost like react-native start then I start my project on android by this code react-native run-android. The project works fine on my physical device.

But I am getting an error when I use Expo (** I do not know what is expo is**). I am following the net ninja tutorial series. When I use expo-icons I get no icons. This is the tutorial link : icons

When today I was learning about how to use custom fonts in the react-native I got similar errors like this one shown in this link.

I do not know why does expo is not working on my project. Before following this series, I looked at the book to learn react-native which was saying that now we do not use expo. So how can I get out of this problem?

although i get few answer that clears what is expo and one have also answered the problem of icons in react-native . currently i am not able to use custom fonts in react-native .

Vanns35 :

Expo and react-native both are different CLI to create an applications. Instead of using any components from expo in react-native application, you should use other packages. Since expo dependencies is not supported directly by react-native. (Correct me if I am wrong.) Like, Instead of expo-icons you can use react-native-vector-icons It will solve your current error.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=17075&siteId=1
Recommended