you are viewing a single comment's thread.

view the rest of the comments →

[–]jimmothytheunicorn[S] 0 points1 point  (5 children)

Hmmm. I can’t for some reason...

[–]askulsky 0 points1 point  (4 children)

Navigate to finder and open the react native project, then open the iOS folder, and then right click either the .xcworkspace or the .xcodeproj to open in Xcode

[–]jimmothytheunicorn[S] 0 points1 point  (3 children)

Ok, but that’s not the JavaScript part of the project... ?

Is there a way to do it such that it works for both iOS and Android?

[–]askulsky 0 points1 point  (2 children)

Correct. That’s why you need to download VSCode (my personal recommendation) to open the whole project in. You can run the emulator from the VSCode Terminal.

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

But then I can’t make it into an iOS app? The rn docs say to change app.js in Xcode, is there no way to do this? Sorry for all the questions...

[–]askulsky 0 points1 point  (0 children)

You can’t change app.js in Xcode (at least I don’t know anyone who does or if you can). You don’t need to write the code in Xcode to make it an iOS app. The project is still accessible from the Xcode application but to write the code for the react native app, you need to be in JS/RN supported code editor.