react-native-ux-cam
React Native wrapper for UXCam.
Setup
yarn add react-native-ux-cam
npm install --save react-native-ux-cam
iOS with react-native and Cocoapods
Run the following:
react-native link react-native-ux-cam
Then, add the following to your Podfile:
pod "UXCam", "~> 2.5.7"
Then run:
pod install
You're done! :tada:
Android
Coming soon!
Usage
import UXCam from 'react-native-ux-cam';
UXCam.startWithKey(key);
UXCam.tagScreenName('my screen');
UXCam.tagUserName('John Doe');
UXCam.addTag('logged-in', {
isLoggedIn: true,
isAwesome: true,
});
UXCam.markUserAsFavorite();
const currentUserUrl = await UXCam.urlForCurrentUser();
const currentSessionUrl = await UXCam.urlForCurrentSession();
UXCam.occludeSensitiveScreen(true);
UXCam.occludeSensitiveScreen(false);
UXCam.stopApplicationAndUploadData();
If a method is missing from the official SDK, please send a PR!