react-native-ux-cam
Advanced tools
Comparing version 2.0.1 to 2.1.0
{ | ||
"name": "react-native-ux-cam", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "React Native wrapper for uxcam.com.", | ||
@@ -5,0 +5,0 @@ "main": "./src/UXCam.js", |
@@ -81,4 +81,4 @@ # react-native-ux-cam | ||
// Mark a user as a favorite. | ||
UXCam.markUserAsFavorite(); | ||
// Mark a session as a favorite. | ||
UXCam.markSessionAsFavorite(); | ||
@@ -85,0 +85,0 @@ // Get the url for the current user. Useful for connecting to other |
// Libraries | ||
import {NativeModules} from 'react-native'; | ||
import {NativeModules, Platform} from 'react-native'; | ||
@@ -21,2 +21,13 @@ // Native Modules | ||
setAutomaticScreenNameTagging(enableScreenNameTagging) { | ||
if (Platform.OS === 'android') { | ||
// eslint-disable-next-line | ||
console.warn( | ||
'UXCam#setAutomaticScreenNameTagging not available on Android', | ||
); | ||
} else { | ||
return RNUXCam.setAutomaticScreenNameTagging(enableScreenNameTagging); | ||
} | ||
} | ||
// -------------------------------------------------- | ||
@@ -46,4 +57,4 @@ // Occlude | ||
markUserAsFavorite() { | ||
return RNUXCam.markUserAsFavorite(); | ||
markSessionAsFavorite() { | ||
return RNUXCam.markSessionAsFavorite(); | ||
} | ||
@@ -50,0 +61,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
177049
58