Releases: software-mansion/react-native-gesture-handler
Releases · software-mansion/react-native-gesture-handler
2.5.0
❗ Important changes
- Add
activateAfterLongPress
modifier to Pan gesture by @j-piasecki in #1938 - Make
NativeViewGestureHandler
behave more like on iOS when wrappingTextInput
by @j-piasecki in #2017 - Extract handlers when child view is handling touch with
pointerEvents='box-none'
by @j-piasecki in #2024 - Fix sound effects on nested buttons, add
touchSoundDisabled
prop by @j-piasecki in #2047
🐛 Bug fixes
- Update scroll view class check in
RNNativeViewHandler
on Fabric by @j-piasecki in #2031 - Fix
simultaneousHandlers
prop onNativeViewGestureHandler
on iOS by @j-piasecki in #2018 - Don't use
reanimated
module in a worklet by @j-piasecki in #2070 - Schedule calling
dropAllGestureHandlers
on main queue by @j-piasecki in #2028 - Refactor how ripple animation is applied to
GestureHandlerButton
by @j-piasecki in #2014 - Make sure that react-native-macos is supported by using the web fallback by @hsjoberg in #2010
- Default import
package.json
insrc/utils
by @nandorojo in #2036 - Fix wrong coordinates when multiple gestures are tracking different pointers on Android by @j-piasecki in #2098
- Fix touchable inspector for Gesture Handler buttons by @j-piasecki in #2103
- Fix wrong coordinated reported by
Fling
gesture on iOS by @j-piasecki in #2059 - Fix Kotlin compiler error inferred type Context? by @muhamad-rizki in #2096
- Fix: use different touchHandler on Fabric by @WoLewicki in #2104
- Fix state flow for manual activation on iOS by @j-piasecki in #1912
- Fix importing
PressabilityDebugView
on web by @j-piasecki in #2109 - Upgrade Gesture Handler and FabricExample to support RN 0.69 by @j-piasecki in #2053
🔢 Miscellaneous
- Fix Markdown format by @nidelson in #2107
- Add a guide for migrating to the new API by @j-piasecki in #2076
- Create more general extension mechanism for
NativeViewGestureHandler
on Android by @j-piasecki in #2016 - Delete
App.js
from FabricExample by @j-piasecki in #2035
New Contributors
- @hsjoberg made their first contribution in #2010
- @nandorojo made their first contribution in #2036
- @muhamad-rizki made their first contribution in #2096
Full Changelog: 2.4.2...2.5.0
2.2.1
This release backports a few important changes for Expo.
❗ Important changes
- Basic web support for
GestureDetector
by @j-piasecki in #1934 - Remove warning about the old API by @j-piasecki in #1960
- Rebuild Reanimated event only when needed by @j-piasecki in #1856
2.4.2
🐛 Bug fixes
- Fix resolution of refs in the old API by @j-piasecki in #2019
- Use constant value for translation when
DrawerLayout
is idle by @j-piasecki in #2005 - Fix compatibility with
@types/react^18.0.0
by @j-piasecki in #2030 - Don't update shared value containing the gesture config unless the config has changed by @j-piasecki in #2037
🔢 Miscellaneous
- Upgrade Example app dependencies and React Native by @j-piasecki in #1989
- Move helper functions outside of
useAnimatedGesture
by @j-piasecki in #2034
Full Changelog: 2.4.1...2.4.2
2.4.1
🐛 Bug fixes
- Support monorepos with new architecture by @oblador in #2015
- Add mocks for
flushOperations
in daaeea8, originally by @Alex5ander in #2008
🔢 Miscellaneous
- Add ndkVersion to Android project by @maximzhemerenko in #2012
New Contributors
- @maximzhemerenko made their first contribution in #2012
Full Changelog: 2.4.0...2.4.1
2.4.0
❗ Important changes
- Basic web support for
GestureDetector
by @j-piasecki in #1934 - Remove warning about the old API by @j-piasecki in #1960
- Suppress deprecated warnings by @jakub-gonet in #1886
- Effectively remove
RNGestureHandlerEnabledRootView
by @j-piasecki in #1936 - Add a workaround for
pointerCount must be at least 1
by @j-piasecki in #1982 - Add
cancelsTouchesInView
prop on iOS by @j-piasecki in #1688 - Implement sending events directly to Reanimated on Fabric by @j-piasecki in #1987
🐛 Bug fixes
- Fix TypeScript typing issues with
setTimeout
by removing NodeJS types by @henrikra in #1959 - Pass accessibilityActions properties by @pooyahrtn in #1963
- Use device events when remote debugging is enabled by @j-piasecki in #1929
- Don't send events on iOS when target is
nil
by @j-piasecki in #1946 - Fix props on
GestureHandlerButton
by @j-piasecki in #1967 - Add missing props to
GestureButton
type by @j-piasecki in #1981 - Fix gestures not attaching to views on iOS when using Fabric by @j-piasecki in #1979
- Fix Fabric checks happening too early by @j-piasecki in #1923
- Drop all gesture handlers on invalidate by @j-piasecki in #1988
- Fix nested buttons with outer one disabled on iOS by @j-piasecki in #1991
🔢 Miscellaneous
- Fixed a typo in example url by @ghorbani-m in #1931
- Update @react-navigation version & fix example bug. by @alantoa in #1942
- Updated Tap Gesture Handler Documentation by @ajatdarojat45 in #1962
- Use C++17 for Fabric on iOS by @j-piasecki in #1932
- Add compileOptions to build.gradle. Needed for [email protected] to work by @EmmaSteady in #1937
- Update documentation for wix/react-native-navigation by @Yrsafam in #1965
- Rewrite codegen config with TypeScript by @j-piasecki in #1952
New Contributors
- @ghorbani-m made their first contribution in #1931
- @ajatdarojat45 made their first contribution in #1962
- @pooyahrtn made their first contribution in #1963
- @EmmaSteady made their first contribution in #1937
- @Yrsafam made their first contribution in #1965
Full Changelog: 2.3.2...2.4.0
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