Man James
Man James

Reputation: 89

Where is Xcode Project in React Native?

I am trying to find my Xcode project file inside React Native so I can setup React Native Firebase (https://rnfirebase.io/docs/v5.x.x/installation/ios)

However, I cannot find where the Xcode project file is? Can anyone help.

Upvotes: 2

Views: 8913

Answers (4)

Andrew
Andrew

Reputation: 28539

If you use Expo or create react native app you will not have an iOS folder as these are abstracted away from you.

If you wish to use a dependency that requires you to edit native code then you need to eject your application. https://docs.expo.io/versions/latest/expokit/eject

From your command line run expo eject and it will build the necessary ios and android folders for you. However there are several ramifications if you eject your app. You should read the above link carefully.

Upvotes: 4

Paweł Mikołajczuk
Paweł Mikołajczuk

Reputation: 3822

You can find Xcode project files here:

yourProjectDir/ios/yourprojectname.xcodeproj

If You use cocoapods then you should always use this file:

yourProjectDir/ios/yourprojectname.xcworkspace

Upvotes: 8

Mohammad Ansari
Mohammad Ansari

Reputation: 1549

Open your react native folder

you can see ios folder

this folder is what you search for

Upvotes: 0

SmoggeR_js
SmoggeR_js

Reputation: 3160

YourRNProject/ios and there you have it inside!

Upvotes: 0

Related Questions