This release marks a new milestone in Gesture Handler - we added new API that's easier to use, tidied up some cruft that accumulated over the years and fixed many longstanding bugs. Check the changelog below.
For the documentation about the new API and newly added features please check out the updated docs page at https://docs.swmansion.com/react-native-gesture-handler/
⚠️ Breaking changes
- Adjust Swipeable's
overshootFriction
behavior (#1275) by @kolking - Fix min distance on Pan with custom activation criteria (#1696) by @j-piasecki
- Remove deprecated props from PanGestureHandler (#1662) by @j-piasecki
❗ Important changes
- Add new API by @j-piasecki
- New Manual Gesture feature by @j-piasecki
- Add duration to long press event (#1505) by @j-piasecki
- Allow resetting properties to default value (#1444) by @jakub-gonet
- Fix TouchableOpacity visuals (#1567) by @jakub-gonet
- Deprecate RNGestureHandlerEnabledRootView (#1605) by @jakub-gonet
- Fix modals (#1603) by @jakub-gonet
- Fix tap gesture handler inconsistency (#1682) by @j-piasecki
- Update FlingGestureHandler on iOS (#1612) by @j-piasecki
- Update PanGestureHandler on iOS (#1611) by @j-piasecki
- Fix LongPressGestureHandler inconsistency (#1610) by @j-piasecki
🐛 Bug fixes
- Reset velocity when beginning pan gesture (#1694) by @j-piasecki
- Fix gesture handlers not working when children overflow their parent (#1618) by @j-piasecki
- Fix nested touchables on Android (#1601) by @j-piasecki
👍 Improvements
- Expanded Jest mocks (#1364) by @TheWirv
- Improved type definitions of Gesture Components (#1394) by @yfunk
- Remove implicit inclusion of node types (#1420) by @jakub-gonet
- Fix interactions between TapGH and PanGH (#1508) by @j-piasecki
- Block touch handling when inspector is enabled (#252) by @osdnk, @jakub-gonet
- Fix compatibilty with React 18 by @janicduplessis
- Pass RNGH props to FlatList's underlying ScrollView (#1557) by @jakub-gonet
- Add JSDocs (#1566) by @jakub-gonet
- Fix buttons can get stuck on Android (#1512) by @bastiandev
- Export SwipeableProps (#1598) by @SimonIT
🔢 Miscellaneous
- Fix build-time warnings & add missing dependencies (#1446, #1447) by @jakub-gonet
- Update Example app
- Update docs by @moondef, @jakub-gonet, @jkadamczyk, @Andarius
- Allow react-native-screens to work with Gesture Handler (#1323) by @WoLewicki
- Fix iteration over argument mapping on web (#1504) by @machouz
- Import UIManager directly from react-native (#1528) by @acoates-ms
- Convert Java sources to Kotlin by @jakub-gonet
- Adds github actions build checks (#1576) by @Ubax
🙌 Thank you for your contributions!