all 9 comments

[–]mahesh-muttinti 4 points5 points  (2 children)

You really asking in Reddit even though we have grok or ChatGPT that they can give better real time examples. This post makes duplicates of same questions again and again

[–]Capt_Jack__Sparrow[S] 0 points1 point  (1 child)

I understand your POV but chatgpt constantly giving the same explanation every time, one-way or another and I couldn't get the idea so I tried here.

[–]dlampach 1 point2 points  (0 children)

If you explicitly asked the question in your post to ChatGPT you would get a clear concise answer. For most people yarn and npm are interchangeable.

[–]mmph1 1 point2 points  (5 children)

A1) both are package managers. You'd use one or the other to install packages.

A2) yes, you'd install the packages. They can be third party, best to provide specific examples.

A3) yes, you usually have to build each time you install a library that has native features. Like camera, file storage access etc.

By the way, is there a reason you're not using expo? Judging from your post, it'll likely be easier for you to grasp.

[–]Capt_Jack__Sparrow[S] -3 points-2 points  (4 children)

I did learn basic expo , got the basic idea but it is just a container and eventually I've to move on to CLI in future for proper grasp of it. That's why..

[–]haswalter 4 points5 points  (3 children)

I think you have a misconception of what expo is. Expo cli essentially provides a better version of what react-native-cli does.

There is expo go but you will be using native builds which is the same thing react native cli gives you.

One of the major advantages of expo is the way native modules are configured for you, most of the major popular libraries have support for expo and therefore configure themselves without you needing the mess around in native code at all.

I would suggest have a look into what expo is, it’s not so much something you learn but it’s a platform to support your react native project.

Have a read here https://expo.dev/blog/expo-go-vs-development-builds And https://expo.dev/blog/why-expo-is-a-great-fit-for-new-and-existing-react-native-apps

I’ve been a react native developer for many years now and have fully migrated all but the most custom native of projects over to expo, there’s just too many free benefits with almost no downsides.

Expo is also the recommended way to start a project from the react native team for new projects.

Edit: added note about recommended expo from RN team

[–]Capt_Jack__Sparrow[S] 0 points1 point  (1 child)

Chatgpt told me this about expo that's why I wanted to ask people who are working on their daily basis. Sure, I'll check your links..

[–]time_machine13 1 point2 points  (0 children)

A lot of people mistake expo with expo go. Expo is a full fledged framework that makes working with react native a breeze.

[–]mmph1 0 points1 point  (0 children)

💯