react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

'constructor Handler()' is deprecated. Deprecated in Java

Open kris1803 opened this issue 3 years ago • 1 comments

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

image

Steps To Reproduce

  1. add library to project
  2. 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

kris1803 avatar Aug 09 '22 13:08 kris1803

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?

github-actions[bot] avatar Aug 09 '22 13:08 github-actions[bot]