Releases: software-mansion/react-native-gesture-handler
Releases · software-mansion/react-native-gesture-handler
2.7.0
❗ Important changes
- Change default Kotlin version by @j-piasecki in #2224
- Transform entire
MotionEvent
instead of single pointer only by @j-piasecki in #2156
🐛 Bug fixes
- Prevent handlers from crashing when they don't use touch events by @Warus15 in #2246
- Update if statments in PointerTracker to correctly return coordinates by @Warus15 in #2247
- Fix nested buttons on Android and buttons becoming unresponsive in a list by @j-piasecki in #2187
- Fix
NullPointerException
when evaluatinghitSlop
on Android by @j-piasecki in #2241 - Make
ReanimatedEventDispatcher
a class and not an object by @j-piasecki in #2203
🔢 Miscellaneous
- Bump Fabric Example to stable RN 0.70 by @j-piasecki in #2205
Full Changelog: 2.6.2...2.7.0
2.6.2
🐛 Bug fixes
- Use
cloneElement
when assigning a refresh control by @j-piasecki in #2231 - Use
_reactInternalFiber
instead of_reactInternals
on RN 0.63 by @j-piasecki in #2238 - Make handlers send touches cancel on gesture end by @Warus15 in #2240
👍 Improvements
- Make macOS codepath less chatty by @hsjoberg in #2193
- Returning Swipeable reference by @franck-nadeau in #2105
🔢 Miscellaneous
- Replace
jcenter
withmavenCentral
by @j-piasecki in #2225 - Typo Corrections. by @anujraghuvanshi in #2235
- Update message about the new API in docs by @j-piasecki in #2230
New Contributors
- @franck-nadeau made their first contribution in #2105
- @anujraghuvanshi made their first contribution in #2235
Full Changelog: 2.6.1...2.6.2
2.6.1
❗ Important changes
- Touch events web by @Warus15 in #2177
- Manual gesture receiving touch events by @Warus15 in #2188
- Pointer events to touch events mapping by @Warus15 in #2207
🐛 Bug fixes
- Nested touchables fix by @Warus15 in #2210
- Add check for module by @Warus15 in #2215
- Cache averages in PointerTracker by @Warus15 in #2212
- Remove calling web implementation on native apps by @Warus15 in #2214
- Add support for enable by @Warus15 in #2206
👍 Improvements
- Update
@types/react-native
and remove comments about missing.d.ts
files by @j-piasecki in #2189 - Unify how
reanimated
module is looked for on Android by @j-piasecki in #2201 - Remove event parameter by @Warus15 in #2190
🔢 Miscellaneous
- Bump ws from 7.4.4 to 7.5.9 in /docs by @dependabot in #2182
- Bump terser from 5.7.1 to 5.15.0 in /docs by @dependabot in #2183
- Fix concurrent CI by @tomekzaw in #2198
- Update dependencies and fix CI by @j-piasecki in #2202
- Bump Example app to RN 0.70 by @j-piasecki in #2209
- fix: broken links by @lucioroadtoglory in #2218
New Contributors
- @lucioroadtoglory made their first contribution in #2218
Full Changelog: 2.6.0...2.6.1
2.6.0
❗ Important changes
- Add experimental web implementation by @Warus15 in #2157
- Validate children of GestureDetector to check if there is only one native view that can be a target of the gestures by @j-piasecki in #2132
- Add
onLongPress
callback to Gesture Handler buttons by @j-piasecki in #2083 - Detect duplicate instances by @piaskowyk and @kkafar in #2155, #2162, #2173, #2174
- Export custom
RefreshControl
component and add logic required to handle it by @j-piasecki in #2137 - Compatibility with React Native 0.70, replace NDK with CMake by @tomekzaw and @j-piasecki in #2153
🐛 Bug fixes
- Make gestures work on non-editable
TextInput
on Android by @j-piasecki in #2112 - fix: remove explicit folly version by @kacperkapusciak in #2148
- Pass
disabled
prop to theBaseButton
inTouchableNativeFeedback
by @j-piasecki in #2141 - Fix some edge cases in state flow on Android when handler is waiting for another one by @j-piasecki in #2145
- Build only required architectures on Android by @j-piasecki in #2126
- Remove unsafe methods by @j-piasecki in #2130
- Cancel gestures when an uninterruptible native gesture becomes active by @j-piasecki in #2129
- Fix default max distance for long press on Android by @j-piasecki in #2095
- Make Gesture Handler on web respect
simultaneousHandlers
prop when used on aScrollView
by @j-piasecki in #2125 - Check if loaded module is really Reanimated in
reanimatedWrapper
by @j-piasecki in #2179 - Use angle-bracket imports by @tomekzaw in #2180
- fix:
RCT_NEW_ARCH_ENABLED=0
to disable new arch by @nomi9995 in #2178
👍 Improvements
- Display a more expressive error message when Gesture Handler receives more than one child by @j-piasecki in #2131
- Use non-deprecated
Handler
constructor by @j-piasecki in #2163 - Upgrade Docusaurus & theme to match Reanimated by @j-piasecki in #2166
- Make Example app run on web by @j-piasecki in #2110
- Update issue template by @kacperkapusciak in #2165
🔢 Miscellaneous
- Update version requirements in docs and
README
by @j-piasecki in #2077 - Bump moment from 2.29.2 to 2.29.4 in /ci/e2e by @dependabot in #2123
- Bump terser from 4.8.0 to 4.8.1 in /docs by @dependabot in #2136
- Add
runOnJS
where necessary in Drag and Drop example by @j-piasecki in #2144 - Mention automatic workletization of callbacks in the docs by @j-piasecki in #2124
- chore: typo in issue template by @kkafar in #2176
New Contributors
- @piaskowyk made their first contribution in #2155
- @kkafar made their first contribution in #2173
- @Warus15 made their first contribution in #2157
- @nomi9995 made their first contribution in #2178
Full Changelog: 2.5.0...2.6.0
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 Detox@19.5.7 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)