react-native-ux-cam
Version:
React Native wrapper for uxcam.com.
46 lines (33 loc) • 1.44 kB
Markdown
`$yarn add file:/path-to-the-uxcam-react-wrapper`
For iOS, you will need to update pod as well:
`cd ios && pod update && cd ..`
>Starting from 5.3.0, we no longer support project with react native version <0.60.0. Use manual linking for older version to add [UXCam](https://github.com/uxcam/ios-sdk/raw/main/UXCam.xcframework.zip) to your project.
>iOS 10 is the lowest version supported for recording sessions, which matches the default minimum version for new React Native projects.
```javascript
import RNUxcam from 'react-native-ux-cam';
RNUxcam.optIntoVideoRecording(); // Add this line to enable screen recordings
const configuration = {
userAppKey: 'YOUR API KEY',
/*
disable advanced gestures if you're having issues with
swipe gestures and touches during app interaction
*/
// enableAdvancedGestureRecognition: false
}
RNUxcam.startWithConfiguration(configuration);
```
`yarn install`
`yarn add react-native-ux-cam`
`yarn add file:/path-to-uxcam-plugin`
`react-native run-android`
`react-native run-ios`
This is an updated way of integrating the UXCam SDK react-native following on from the original work by Mark Miyashita (https://github.com/negativetwelve) without whom this would have all been much harder!