Open bitkiller42 opened 2 years ago
It may be time for someone to revise this entire library to bring it up to modern standards. I have not had the availability to work on it in any depth for quite a while now, as much as I would love to see that. I sadly cannot make any commitments as to when I will be able to address this.
The library still seems to work great with latest react native version. I have been using it in a project recently and everything seems to work. The performance is average. The new gesture handler api + reanimated could be the perfect recipe for the next version of this amazing library. It still is the best implementation in the ecosystem.
The 2.x version of react-native-gesture-handler has some breaking changes with react-native-drax. Using the old 1.x version of react-native-gesture-handler is sometimes difficult in projects, e.g. Expo.
Known warnings and errors
UPDATE: EventEmitter solved with PR https://github.com/nuclearpasta/react-native-drax/pull/125 , so not part of this issue
Workaround
This makes react-native-drax usable with react-native-gesture-handler 2.x, but you will see warnings and it feels slow.
Surround the drax/DraxProvider with gesture-handler/GestureHandlerRootView
Related issues