Hi,
We are currently implementing the official Dynatrace react-native plugin into an EXPO for monitoring RN apps.
We ran into an issue during setup, the step where we need to call `npx instrumentDynatrace` expects a static app.json file and takes the name property verbatim from there to find the project folder in the iOS and android folder.
This has multiple problems:
- We don’t have a static app.json → we use app.config.ts as we use dynamic bundleIds etc based on build params
- The name is not 1:1 so expo does some transformations to create the folder name
- we use CNG → which has the above mentioned problems
To work around that, we currently generate a app.json, transform the name in a similar way, call instrumentDynatrace and then delete the app.json again. While this works okish, I am of the opinion that the plugin should support static and dynamic configurations.
All the Best,
Kevin Gruber
Dynamic config Refercence: Configure with app config - Expo documentation