Skip to content

Conversation

@compojoom
Copy link
Contributor

Overview

When trying to compile our app with the new RN 0.77 we ran into the following error:

Task :react-native-menu_menu:compileDebugKotlin FAILED
e: file:///.../@react-native-menu/menu/android/src/main/java/com/reactnativemenu/MenuView.kt:60:3 'onTouchEvent' overrides nothing. e: file:///.../@react-native-menu/menu/android/src/main/java/com/reactnativemenu/MenuView.kt:61:35 Argument type mismatch: actual type is 'android.view.MotionEvent?', but 'android.view.MotionEvent' was expected.

Test Plan

Compiling on RN 0.77 should work

fixes:
> Task :react-native-menu_menu:compileDebugKotlin FAILED
e: file:///.../@react-native-menu/menu/android/src/main/java/com/reactnativemenu/MenuView.kt:60:3 'onTouchEvent' overrides nothing.
e: file:///.../@react-native-menu/menu/android/src/main/java/com/reactnativemenu/MenuView.kt:61:35 Argument type mismatch: actual type is 'android.view.MotionEvent?', but 'android.view.MotionEvent' was expected.
Copy link
Member

@Naturalclar Naturalclar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@Naturalclar Naturalclar merged commit cab10d3 into react-native-menu:master Jan 23, 2025
5 checks passed
@compojoom compojoom deleted the fix-android-rn-0.77 branch January 24, 2025 07:13
@fobos531
Copy link
Contributor

@Naturalclar Could you publish a new version with this PR?

@Naturalclar
Copy link
Member

@fobos531 done! released as 1.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants