@benawad/expo-mixpanel-analytics
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "@benawad/expo-mixpanel-analytics", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Mixpanel integration for use with React Native apps built on Expo.", | ||
@@ -5,0 +5,0 @@ "main": "src/dist/index.js", |
@@ -14,5 +14,5 @@ import { Platform, Dimensions, AsyncStorage } from "react-native"; | ||
token: string; | ||
userId: string | null; | ||
clientId: string; | ||
userAgent?: string; | ||
userId?: string | null; | ||
clientId?: string; | ||
userAgent?: string | null; | ||
appName?: string; | ||
@@ -46,3 +46,3 @@ appId?: string; | ||
this.deviceName = Constants.deviceName; | ||
if (isIosPlatform && Constants.platform.ios) { | ||
if (isIosPlatform && Constants.platform && Constants.platform.ios) { | ||
this.platform = Constants.platform.ios.platform; | ||
@@ -83,3 +83,3 @@ this.model = Constants.platform.ios.model; | ||
identify(userId: string) { | ||
identify(userId?: string) { | ||
this.userId = userId; | ||
@@ -86,0 +86,0 @@ } |
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
14534