Quickstart guide for Expo

DevRev SDK, used for integrating DevRev services into your Expo app.

Requirements

  • React Native 0.79.0 or later.
  • For Expo apps, Expo 50.0.0 or later.
  • Android: minimum API level 24.
  • iOS: minimum deployment target 15.1.
  • Recommended: A locally configured SSH key registered on Github.

Installation

  1. To install the DevRev SDK, run the following command:
    $npx expo install @devrev/sdk-react-native-expo-plugin
  2. Configure the Expo config plugin in your app.json or app.config.js:
    1{
    2 "expo": {
    3 "plugins": [
    4 "@devrev/sdk-react-native-expo-plugin"
    5 ]
    6 }
    7}
  3. Rebuild your app:
    $npx expo prebuild --clean

Set up the DevRev SDK

  1. Open the DevRev web app at https://app.devrev.ai and go to the Settings page.
  2. Under PLuG settings copy the value under Your unique App ID.
  3. Configure the DevRev SDK in your app using the obtained credentials.

The DevRev SDK must be configured before you can use any of its features.

The SDK becomes ready for use once the following configuration method is executed.

1DevRev.configure(appID: string)

Sample app

A sample app with use cases for the DevRev Expo plugin has been provided as a part of our public repository. To set up and run the sample app:

  1. Go to the sample directory:

    1cd sample
  2. Install dependencies:

    1yarn install
  3. Run clean and prebuild:

    1npx expo prebuild --clean
  4. Run the app On Android:

    1npx expo run:android

    OR open android in Android Studio and run the app.

  5. Run the app On iOS:

    1npx expo run:ios

    OR open ios/DevRevSDKSample.xcworkspace in Xcode and run the app.