Install the React Native Agent

This module injects the native Splunk AppDynamics agents into your application and offers a JavaScript bridge to the Instrumentation management interface.

  1. Install the React Native Agent using any of the following commands:
    NPM
    npm install --save @appdynamics/react-native-agent
    
    Yarn
    yarn add @appdynamics/react-native-agent
  2. Build the configuration to enable the build-time instrumentation of your application:
    node node_modules/@appdynamics/react-native-agent/bin/cli.js install
    Note: The React Native Agent CLI assumes you've kept the default project structure created with the react-native CLI tools.
If the above commands failed, see manually install the React Native package. Otherwise, proceed to Add Permissions (Android Only).