Where is info.plist for React Native projects run in Expo for the purpose of callback URLs?

Code Doggo picture Code Doggo · Oct 30, 2017 · Viewed 13k times · Source

I am handling OAuth requests in my iOS React Native application. This application is contained and launched through Expo. I want to add in a custom callback url, so that I can return back to the application after jumping into a browser. Supposedly, I do this through modifying the info.plist file, except it is nowhere to be found. My project folder does not contain this file anywhere and I am not entirely sure if npm, the command line tool, is generating it on runtime.

Where on earth is this file?

For context, I am not using Xcode. I am just using sublime to edit my project files with a terminal running npm start.

Edit - After the solution was found:

There is another question on StackOverflow that aims to answer this same question, but for different reasons: "Info.plist file for react native ios app using expo SDK." However, my question is specific to callback urls. As I described in my answer below, Expo has its own callback URL for your app (i.e. no need to edit the info.plist file). If you need that info.plist, see the question linked above. The info.plist file is hidden when using Expo, but there is a work around to accessing some of its fields.

Answer

Sun Lee picture Sun Lee · Jun 2, 2018

For non-Expo projects, the location is /YOUR_APP_DIR/ios/YOUR_APP_NAME/Info.plist. If you update this file and save, you will see the same file update in Xcode.