What is the purpose of `app.json`, for Expo bare workflow?

Viewed 379

If I am running the "expo bare workflow", what is the purpose of app.json?

For example, in app.json, I see:

{
  "expo": {
    "name": "MyAppName",
    "slug": "MyAppName",
   ...
   "name": "MyAppName"

If I understand, in the bare workflow, we no longer user the Expo cli. I am not sure what the purpose of this file is for the bare workflow.

1 Answers

Late answer to the question but I was asking myself the same thing a while ago.

Docs on bare workflow: "Configuration with app.json / app.config.js is mostly not supported in this context; instead, you will need to configure each native project directly."

Note the "mostly". The app.json / app.config.js reference is more explicit about this as it provides additional information on attributes which must be managed natively when using bare workflow. Attributes without peculiarities can be expected to be configurable from app.json / app.config.js. For instance, I'm using the extra property to set environment variables while I'm on bare workflow.

Related