Releases: software-mansion/react-native-gesture-handler
2.3.2
⚠️ Breaking changes
- Remove
jestUtils
from the mainindex.ts
and move it to separatepackage.json
(#1917 by @j-piasecki)
We felt that, although it's a breaking change, this fix important enough to warrant a patch release. If you started using fireGestureHandler
and getByGestureTestId
methods, change their import to react-native-gesture-handler/jest-utils
.
❗ Important changes
- Use native driver by default for
TouchableOpacity
animations (#1924 by @j-piasecki)
2.3.1
2.3.0
❗ Important changes
- Gesture Handler for Fabric (0d1a917 by @tomekzaw and @j-piasecki)
- Add FabricExample (d534462 by @tomekzaw and @j-piasecki)
- Add ability to fire gesture events in testing (273fa03 by @jakub-gonet and @piaskowyk)
🐛 Bug fixes
- Fix race condition between the orchestrator and the registry (ceec9f8 by @j-piasecki)
- Rebuild Reanimated event only when needed (c094533 by @j-piasecki)
- Fix tvOS compilation errors (e932a48 by @j-piasecki)
- Add modified ScaleGestureDetector from AOSP (ce1fec7 by @j-piasecki)
- Use the speed option in DrawerLayout (a6591e6 by @j-piasecki)
👍 Improvements
- Export change event payload types (0f18253 by @jakub-gonet)
- Add direction to Swipeable callbacks (48df239 by @jakub-gonet)
🔢 Miscellaneous
- Add
runOnJS
modifier to gestures (7ce194f by @j-piasecki)
2.1.3
Use export type
when exporting types (#1791) by @j-piasecki
2.1.2
Use path relative to the directory of Reanimated when checking its version (#1757) by @j-piasecki
2.2.0
❗ Important changes
- Change absolute position to be relative to the window instead of the screen (#1812) by @j-piasecki
- Add notice for old API users (#1817) by @jakub-gonet
We want to improve the discoverability of the new API so we added a one-time notice whenever an old gesture handler is used. Check out #1817 for information on how to disable it if you find the notice unhelpful.
🐛 Bug fixes
- Use path relative to the directory of Reanimated when checking its version (#1757) by @j-piasecki
- Check major version of Reanimated when looking for common interface (#1768) by @j-piasecki
- Reset progress of handler when it finishes waiting ends (#1795) by @j-piasecki
- Use
export type
when exporting types (#1791) by @j-piasecki - Send first
onTouchesDown
after gesture begins (#1793) by @j-piasecki - Send state change event when awaiting handler finishes (#1774) by @j-piasecki
- Don't send
UNDETERMINED
toCANCELLED
state change event (#1796) by @j-piasecki
2.1.1
2.1.0
2.0.0
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!
1.10.3
Patch release fixing Expo 41 support, types, and removing deprecation warning.
⌨️ Typescript
- Move types to type exports (#1389) by @jakub-gonet
- Fix Timeout type (#1386) by @jakub-gonet
🔢 Miscellaneous
- Update deprecated getConstants() call (#1379) by @jarod-legault
- Remove GestureHandlerRootView.android.expo.tsx (#1383) by @jakub-gonet
🙌 Thank you for your contributions!