How to configure React Native Tools to use app.config.js instead of app.json

Viewed 195

I am debugging my React Native expo application with the following launch.json configuration in vscode:

{
  "name": "Debug in Exponent",
  "cwd": "${workspaceFolder}",
  "type": "reactnative",
  "request": "launch",
  "platform": "exponent",
  "expoHostType": "lan",     
}

This is done using the React Native Tools.

However, I have a dynamic configuration (app.config.js) that sets up quite some environment variables etc, which is ignored by the debug configuration (which uses app.json directly). How can I setup my launch.json to use the app.config.js instead of app.json?

0 Answers
Related