Skip to content

Commit

Permalink
fix: type mismatch inferred type is String? but String was expected
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunita Prajapati committed Nov 13, 2024
1 parent f4b913a commit 2b1e1fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2b1e1fc

Please sign in to comment.