From 2b1e1fce8962a060d102e123752f3a534e8f2932 Mon Sep 17 00:00:00 2001 From: Sunita Prajapati <> Date: Wed, 13 Nov 2024 15:12:30 +0530 Subject: [PATCH] fix: type mismatch inferred type is String? but String was expected --- .../segmentanalyticsreactnative/AnalyticsReactNativeModule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt b/packages/core/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt index a6769bba..589ca782 100644 --- a/packages/core/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt +++ b/packages/core/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt @@ -125,7 +125,7 @@ class AnalyticsReactNativeModule : ReactContextBaseJavaModule, ActivityEventList @ReactMethod fun getContextInfo(config: ReadableMap, promise: Promise) { val appName: String = reactApplicationContext.applicationInfo.loadLabel(reactApplicationContext.packageManager).toString() - val appVersion: String = pInfo.versionName + val appVersion: String = pInfo.versionName.toString() val buildNumber = getBuildNumber() val bundleId = reactApplicationContext.packageName