Releases: software-mansion/react-native-gesture-handler
Releases · software-mansion/react-native-gesture-handler
2.8.0
❗ Important changes
- Add
userSelect
prop by @Warus15 in #2280 - Make
gesture
required prop inGestureDetector
by @Warus15 in #2285
🐛 Bug fixes
- Make handlers respect
shouldCancelWhenOutside
by @Warus15 in #2271 - Fix
ManualGestureHandler
shouldCancelWhenOutside on iOS by @Warus15 in #2274 - Fix missing
begin
event on Android for Pinch and Rotation by @j-piasecki in #2264
🔢 Miscellaneous
- Add pre-commit hook and linters for Android and iOS code by @j-piasecki in #2114
- Add module file for Windows by @Warus15 in #2272
- Bump react-native-reanimated from 2.4.1 to 2.10.0 by @dependabot in #2287
- Fix example app with Reanimated by @j-piasecki in #2251
- Make
clang-format
a dev dependency by @j-piasecki in #2289 - Merge
lib
package into the main one in the Android implementation by @j-piasecki in #2270
Full Changelog: 2.7.1...2.8.0
2.7.1
🐛 Bug fixes
- Pan shouldCancelWhenOutside fix by @Warus15 in #2256
- Change in handling coordinates in FlingGestureHandler by @Warus15 in #2253
- Fix simultaneous gesture when it receives composed gestures as arguments by @j-piasecki in #2252
- Remove userSelect: none on NativeViewGestureHandler by @Warus15 in #2260
- Change order of sending touch events and assigning new state by @Warus15 in #2261
- fix a potential race on component unmount by @phryneas in #2262
👍 Improvements
- Disable context menu on LongPressGestureHandler by @Warus15 in #2257
New Contributors
Full Changelog: 2.7.0...2.7.1
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