FeatureConfiguration controls how the SDK behaves both during initial setup and when calling DevRev.updateFeatureConfiguration(...). All properties are required when providing a feature configuration.
Property
Type
Default
Description
enableFrameCapture
boolean
true
Enables the screen capture pipeline used by session replay.
autoStartRecording
boolean
true
Automatically starts recording after the SDK finishes remote configuration.
prefersDialogMode
boolean
false
Prefer dialog mode for the support UI (Android only).
alwaysUseRemoteConfig
boolean
true
Always use remote config.
supportWidgetTheme
SupportWidgetTheme
—
Controls the appearance of the in-app support widget, including dynamic theme behavior.
A sample app with use cases for the DevRev SDK for React Native has been provided as a part of our public repository. To set up and run the sample app:
Go to the sample directory:
cd sample/react-native
Install the dependencies:
yarn install
For iOS, run:
pod install --project-directory=ios --repo-update
Start the React Native development server:
npx react-native start
Run the app on Android using:
npx react-native run-android
or open the android directory in Android Studio and run the app from there.
Run the app on iOS using:
npx react-native run-ios
or open ios/DevRevSDKSampleRN.xcworkspace in Xcode and run the app from there.