react-native-ux-cam
Advanced tools
Comparing version 2.1.0 to 2.2.0
{ | ||
"name": "react-native-ux-cam", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "React Native wrapper for uxcam.com.", | ||
@@ -5,0 +5,0 @@ "main": "./src/UXCam.js", |
@@ -99,4 +99,7 @@ # react-native-ux-cam | ||
UXCam.stopApplicationAndUploadData(); | ||
// To start a new recording: | ||
UXCam.restartSession(); | ||
``` | ||
If a method is missing from the official SDK, please send a PR! |
// Libraries | ||
import {NativeModules, Platform} from 'react-native'; | ||
import {NativeModules} from 'react-native'; | ||
@@ -21,11 +21,8 @@ // Native Modules | ||
restartSession() { | ||
return RNUXCam.restartSession(); | ||
} | ||
setAutomaticScreenNameTagging(enableScreenNameTagging) { | ||
if (Platform.OS === 'android') { | ||
// eslint-disable-next-line | ||
console.warn( | ||
'UXCam#setAutomaticScreenNameTagging not available on Android', | ||
); | ||
} else { | ||
return RNUXCam.setAutomaticScreenNameTagging(enableScreenNameTagging); | ||
} | ||
return RNUXCam.setAutomaticScreenNameTagging(enableScreenNameTagging); | ||
} | ||
@@ -32,0 +29,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
177333
175
105