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
  1. Add the following line to your android/build.gradle:
    CODE
    apply from: '../node_modules/@appdynamics/react-native-agent/android/adeum.gradle'
  2. 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')
  3. Also, android/app/build.gradle should contain a reference to the Appdynamics agent module.
    JSON
    dependencies {
        implementation project(':@appdynamics_react-native-agent')
        // ...
    }
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.podspec

Make sure to add libsqlite3 to your project as explained in Add Required Libraries (iOS Only).