react-native-gesture-handler
react-native-gesture-handler copied to clipboard
Address compilation warnings
Description
It turns out that our code uses some deprecated functions. Also there were few more warnings, such as shadowed name or unused variables.
Some of included changes require digging into react-native source code to find alternative approach.
Fixes #2460
dispatch method
Based on @kkafar research in screens, I've replaced dispatch method with getEventData.
- Here you can find how
dispatchlooks like in the source code. - Here you can see example change in react-native
Test plan
Tested that our example apps (paper and fabric) work as expected.
Can someone merge this, for Christ?