### Install Dependencies Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-expo-react-navigation/README.md Installs project dependencies and prepares the iOS environment by installing pods. ```shell yarn install (cd ios && pod install) ``` -------------------------------- ### Install Dependencies Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation-async/README.md Installs project dependencies and runs pod install for iOS. ```shell yarn install (cd ios && pod install) ``` -------------------------------- ### Install Dependencies Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation/README.md Installs all project dependencies using yarn and installs pods for the iOS platform. ```shell yarn install (cd ios && pod install) ``` -------------------------------- ### Install Dependencies Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/android-app-with-rn/README.md Installs all project dependencies using Yarn. ```shell yarn install ``` -------------------------------- ### Install Dependencies Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation-codepush/README.md Installs project dependencies using yarn and installs pods for the iOS platform. ```shell yarn install (cd ios && pod install) ``` -------------------------------- ### React Native Application CMake Setup Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-native-tvos/android/app/src/main/jni/CMakeLists.txt This snippet demonstrates the basic CMake configuration required to build a React Native application, including the inclusion of necessary Datadog SDK utilities for the new architecture. ```cmake cmake_minimum_required(VERSION 3.13) # Define the library name here. project(tvapp_appmodules) # This file includes all the necessary to let you build your application with the New Architecture. include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake) ``` -------------------------------- ### Install Dependencies Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/ios-app-with-rn/README.md Installs project dependencies using Yarn and installs native iOS dependencies using CocoaPods. ```shell yarn install (cd ios && pod install) ``` -------------------------------- ### Datadog Initialization Settings Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation-async/README.md Example JSON structure for Datadog initialization settings, including session sampling rate and native crash reporting. ```json { "sessionSamplingRate": 60, "nativeCrashReportEnabled": true } ``` -------------------------------- ### Install Dependencies and Configure Credentials Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rn-app-with-native/README.md Installs project dependencies using yarn and CocoaPods for iOS, and sets up a credentials.json file for Datadog integration. This configuration is essential for the Datadog SDK to connect to your Datadog account. ```shell yarn install (cd ios && pod install) ``` -------------------------------- ### Shopist API Host Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation-async/README.md Configuration file specifying the API host for Shopist. ```json { "shopistApiHost": "shopist.io" } ``` -------------------------------- ### Shopist API Host Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation/README.md Configuration file specifying the host for the Shopist API. ```json { "shopistApiHost": "shopist.io" } ``` -------------------------------- ### Datadog Credentials Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation-async/README.md Configuration file for Datadog SDK credentials, including client token, environment, application ID, and API link. ```json { "clientToken": "", "environment": "", "applicationId": "", "apiCall": "" } ``` -------------------------------- ### Datadog Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/android-app-with-rn/README.md Creates a `datadog.properties` file with essential Datadog credentials for the Android application. ```properties APPLICATION_ID="" CLIENT_TOKEN="" ENVIRONMENT="" ``` -------------------------------- ### Install Dependencies Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-native-tvos/README.md Installs project dependencies using yarn and installs pods for the iOS project. ```shell yarn install (cd ios && pod install) ``` -------------------------------- ### Datadog CI Source Map Upload Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation-async/README.md Configuration file for uploading source maps to Datadog using datadog-ci. ```json { "apiKey":"" } ``` -------------------------------- ### Datadog Credentials Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation/README.md Configuration file for Datadog SDK credentials, including client token, environment, and RUM application ID. ```json { "clientToken": "", "environment": "", "applicationId": "" } ``` -------------------------------- ### Credentials Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-expo-react-navigation/README.md Specifies the structure for the `credentials.json` file, which holds Datadog RUM application details. ```json { "clientToken": "", "environment": "", "applicationId": "" } ``` -------------------------------- ### Hosts Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-expo-react-navigation/README.md Defines the structure for the `hosts.json` file, used to configure API hostnames. ```json { "shopistApiHost": "shopist.io" } ``` -------------------------------- ### Datadog Instrumentation (Android) Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/android-app-with-rn/README.md Details the Android instrumentation for the React Native application. ```kotlin See the [MyReactApplication.kt](./android/app/src/main/java/com/example/hybridapp/MyReactApplication.kt) file for the Android instrumentation. ``` -------------------------------- ### Encrypt Files for EAS Build Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-expo-react-navigation/README.md Demonstrates how to base64 encode configuration files for use as secrets in EAS builds. ```bash cat ./credentials.json | base64 ``` ```bash cat ./config/credentials.json | base64 ``` ```bash cat ./config/hosts.json | base64 ``` -------------------------------- ### Shopist API Host Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation-codepush/README.md Configuration file specifying the API host for the Shopist application. ```json { "shopistApiHost": "shopist.io" } ``` -------------------------------- ### Datadog CI API Key Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation/README.md Configuration file for Datadog CI, containing the API key required for uploading source maps. The API key must be valid. ```json { "apiKey": "" } ``` -------------------------------- ### Datadog Instrumentation (JavaScript) Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/android-app-with-rn/README.md Demonstrates how to instrument Datadog on the JavaScript side of the React Native application. ```javascript See the [index.android.js](./index.android.js) on how to instrument Datadog on the javascript side. ``` -------------------------------- ### Run App Locally Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-expo-react-navigation/README.md Commands to build and run the Expo application locally using the Expo development client for Android and iOS. ```shell yarn expo run:android ``` ```shell yarn expo run:ios ``` -------------------------------- ### Fix react-native-screens Build Issue Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/android-app-with-rn/README.md Applies a patch to `ScreenStackHeaderConfig.kt` to resolve a build issue related to theme attribute resolution in react-native-screens. ```kotlin if (context.theme.resolveAttribute(android.R.attr.colorPrimary, tv, true)) { ``` -------------------------------- ### Datadog Credentials Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rn-app-with-native/README.md Specifies the required Datadog credentials for application integration. This JSON file must be created at the project root and populated with your Datadog applicationId, clientToken, and environment. ```json { "applicationId": "", "clientToken": "", "environment": "" } ``` -------------------------------- ### iOS Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/ios-app-with-rn/README.md Configuration file for iOS application secrets, including Application ID, Client Token, and Environment, required for Datadog SDK initialization. ```shell APPLICATION_ID = CLIENT_TOKEN = ENVIRONMENT = ``` -------------------------------- ### Datadog CI Configuration for Source Maps Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation-codepush/README.md Configuration file for Datadog CI to upload source maps. Requires a valid Datadog API key. ```json { "apiKey":"" } ``` -------------------------------- ### Datadog Credentials Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-navigation-codepush/README.md Configuration file for Datadog RUM and CodePush credentials. Requires client token, environment name, application ID, and CodePush deployment keys for Android and iOS. ```json { "clientToken": "", "environment": "", "applicationId": "", "CodePushDeploymentKeyAndroid": "", "CodePushDeploymentKeyIOS": "" } ``` -------------------------------- ### Running Sample Apps Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/CONTRIBUTING.md Commands to run the Android and iOS sample applications using yarn. ```sh # Run the Android sample yarn android # Run the ios sample yarn ios ``` -------------------------------- ### Datadog Credentials Configuration Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-native-tvos/README.md Specifies the structure for the `credentials.json` file required for Datadog integration, including application ID, client token, and environment. ```json { "applicationId": "", "clientToken": "", "environment": "" } ``` -------------------------------- ### Run on tvOS Source: https://github.com/datadog/dd-sdk-reactnative-examples/blob/main/rum-react-native-tvos/README.md Command to run the React Native application on a tvOS simulator. ```shell yarn tvos ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.