react-native-ux-cam
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "react-native-ux-cam", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "React Native wrapper for uxcam.com.", | ||
@@ -5,0 +5,0 @@ "main": "./src/UXCam.js", |
@@ -66,7 +66,7 @@ # react-native-ux-cam | ||
// Get the url for the current user. Useful for connecting to other | ||
// analytics services. | ||
const currentUserUrl = UXCam.urlForCurrentUser(); | ||
// analytics services. Note, this method is async and returns a promise. | ||
const currentUserUrl = await UXCam.urlForCurrentUser(); | ||
// Get the url for the current session. | ||
const currentSessionUrl = UXCam.urlForCurrentSession(); | ||
// Get the url for the current session. Note, this method is also async. | ||
const currentSessionUrl = await UXCam.urlForCurrentSession(); | ||
@@ -73,0 +73,0 @@ // Hide a sensitive screen. |
@@ -52,7 +52,7 @@ // Libraries | ||
// -------------------------------------------------- | ||
urlForCurrentUser() { | ||
async urlForCurrentUser() { | ||
return RNUXCam.urlForCurrentUser(); | ||
} | ||
urlForCurrentSession() { | ||
async urlForCurrentSession() { | ||
return RNUXCam.urlForCurrentSession(); | ||
@@ -59,0 +59,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
170491