react-native-gesture-handler
react-native-gesture-handler copied to clipboard
'constructor Handler()' is deprecated. Deprecated in Java
Description
When I run "yarn android", during the build process, this messages appears for multiple files inside react-native-gesture-handler/android/lib/src/main/java/com/swmansion/gesturehandler/*.kt .
According to this on stackoverflow, it is not complicated to remove deprecated message: https://stackoverflow.com/questions/61023968/what-do-i-use-now-that-handler-is-deprecated
The Looper is imported from android.os.Looper and after the fix error disappears from gradle build terminal logs.
Platforms
- [ ] iOS
- [x] Android
- [ ] Web
Screenshots

Steps To Reproduce
- add library to project
- run yarn android and see terminal
Expected behavior
Not having messages about deprecated Handler.
Actual behavior
Logs about 6 messages of that during build by gradle.
Snack or minimal code example
Not needed, just use a bare react native workflow and follow steps to reproduce.
Package versions
- React: 18.0.0
- React Native: 0.69.3
- React Native Gesture Handler: 2.5.0
- React Native Reanimated: 2.9.1
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem?