diff --git a/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextModule.kt b/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextModule.kt index 93c0c9c..53de6fe 100644 --- a/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextModule.kt +++ b/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextModule.kt @@ -13,8 +13,8 @@ class SafeAreaContextModule(reactContext: ReactApplicationContext?) : return NAME } - public override fun getTypedExportedConstants(): Map { - return MapBuilder.of("initialWindowMetrics", getInitialWindowMetrics() as Any) + public override fun getTypedExportedConstants(): Map { + return mapOf("initialWindowMetrics" to getInitialWindowMetrics()) } private fun getInitialWindowMetrics(): Map? {