Open objectkuan opened 4 months ago
React Native version & version of this library?
React Native version & version of this library?
react-native@0.74.3 react-native-safe-area-context@4.8.2
Just found a workaround by changing
return MapBuilder.of<String, Any>("initialWindowMetrics", getInitialWindowMetrics())
return MapBuilder.of<String, Any>("initialWindowMetrics", getInitialWindowMetrics()!!)
Looks like the Map doesn't allow null values?
Maybe try updating react-native-safe-area-context
?
I am also having this issue with same verisions. Can we get a fix for this in the package?
> Task :react-native-safe-area-context:compileReleaseKotlin FAILED
e: file:///Users/Exposure/Development/AppDevRN/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextModule.kt:17:63 Type mismatch: inferred type is Map<String, Any>? but Any was expected
MapBuilder.of
@objectkuan Where is this change is supposed to be made, which file? Thank you.
build.gradle of my app
The error:
The screenshot: