th3rdwave / react-native-safe-area-context

A flexible way to handle safe area insets in JS. Also works on Android and Web!
MIT License
2.08k stars 191 forks source link

RN 0.74.0: Type mismatch: inferred type is Map<String, Any>? but Any was expected #493

Closed tapz closed 2 months ago

tapz commented 2 months ago

After upgrading to RN 0.74.0 the Android build fails with the following error. I'm using version 4.9.0.

/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

tapz commented 2 months ago

Seems to be fixed in 4.10.0-rc.2

florismettey commented 2 months ago

thx @tapz Stable version fixing the issue has been released: yarn add react-native-safe-area-context@4.10.1

najumasad commented 1 month ago

Stable version fixing the issue has been released:

thanks @tapz @florismettey npm install react-native-safe-area-context@4.10.1 worked for me on react-native 0.74.1