Manually Install the React Native Package (Optional)
Most users do not have to manually install the package, but the command above may fail if you heavily modified your iOS and Android projects.
Follow these steps to manually install the React Native package:
- Android
-
- Add the following line to your
android/build.gradle:CODEapply from: '../node_modules/@appdynamics/react-native-agent/android/adeum.gradle' - Make sure the file settings.gradle contains a reference to the Appdynamics agent module as shown below.
CODE
include ':@appdynamics_react-native-agent' project(':@appdynamics_react-native-agent').projectDir = new File(rootProject.projectDir, '../node_modules/@appdynamics/react-native-agent/android') - Also,
android/app/build.gradleshould contain a reference to the Appdynamics agent module.JSONdependencies { implementation project(':@appdynamics_react-native-agent') // ... }
- Add the following line to your
- iOS
-
For iOS, confirm that the following file exist:
File File Location Example ADEUMReactNative.podspec node_modules directory <your_react_native_app>/node_modules/@appdynamics/react-native-agent/ADEUMReactNative.podspecMake sure to add libsqlite3 to your project as explained in Add Required Libraries (iOS Only).