oliviermtl / avoid-softinput

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimal reproduction for failed android build w/ compileSdkVersion=33 and react-native-avoid-softinput

run yarn android

if compileSdkVersion = 33 it does not build if compileSdkVersion = 31 it builds properly

Error messages

Task :react-native-avoid-softinput:compileDebugKotlin FAILED Type mismatch: inferred type is Animator? but Animator was expected

Fix

in android/src/main/java/com/reactnativeavoidsoftinput/AvoidSoftInputManager.kt override fun onAnimationEnd(animation: Animator?) has to be replaced by override fun onAnimationEnd(animation: Animator)

Testing the fix

git checkout fix yarn android

About


Languages

Language:Java 45.2%Language:C++ 18.2%Language:Objective-C++ 17.1%Language:Ruby 5.5%Language:Starlark 5.0%Language:Makefile 3.9%Language:JavaScript 2.8%Language:Shell 1.3%Language:Objective-C 1.0%