Releases: software-mansion/react-native-gesture-handler
Releases · software-mansion/react-native-gesture-handler
2.10.2
🐛 Bug fixes
- Fix root view error for jest by @IvanIhnatsiuk in #2491
- Prevent GH buttons from activating when scrolling list by @j-piasecki in #2494
New Contributors
- @IvanIhnatsiuk made their first contribution in #2491
Full Changelog: 2.10.1...2.10.2
2.10.1
🐛 Bug fixes
- Fix operation scheduling on iOS by @j-piasecki in #2483
2.10.0
❗ Important changes
- Enable the new web implementation by default by @j-piasecki in #2394
- Replace
setImmediate
andrequestAnimationFrame
withqueueMicrotask
by @j-piasecki in #2467 - Show error when gestures are used without root view by @j-piasecki in #2420
- Change how velocity is calculated on the new web implementation by @j-piasecki in #2443
🐛 Bug fixes
- Fix types for gestureHandlerRootHOC to accept component with props by @Nodonisko in #2413
- Remove
DrawerLayoutAndroid
import on web by @j-piasecki in #2305 - Fix ripple always showing on Touchables when on Android 13 by @j-piasecki in #2418
- Whitelist
Native
gesture props inGestureDetector
by @j-piasecki in #2433 - Fix Gesture Handlers getting stuck due to missing
up
event when using the new web implementation by @j-piasecki in #2442 - Fix Gesture Handler's buttons activating after scroll when using
RefreshControl
by @j-piasecki in #2457 - Make single instance assertion work with Gradle Configuration Cache by @j-piasecki in #2453
- fix: PureNativeButton is not exported by @magrinj in #2447
- fix: do not apply namespace if it is not available in agp by @WoLewicki in #2448
👍 Improvements
- Returns Swipeable reference on renderLeftActions by @ntocampos in #2426
- Add a method
reset
to componentSwipeable
by @UNIDY2002 in #2431 - Remove conditional imports for native components by @j-piasecki in #2461
- Add
dragOffsetFromLeftEdge
anddragOffsetFromRightEdge
props toSwipeable
by @j-piasecki in #2408
🔢 Miscellaneous
- Bump ua-parser-js from 0.7.31 to 0.7.33 by @dependabot in #2392
- Bump ua-parser-js from 0.7.24 to 0.7.33 in /docs by @dependabot in #2389
- Hide
back-to-top
button in the docs by @j-piasecki in #2398 - Upgrade Expo in the example app to use API 47 by @j-piasecki in #2393
- chore: change fabric flag by @WoLewicki in #2397
- Bump http-cache-semantics from 4.1.0 to 4.1.1 in /docs by @dependabot in #2407
- Bump http-cache-semantics from 4.1.0 to 4.1.1 by @dependabot in #2406
- End-to-end tests for web version by @m-bert in #2298
- Bump ua-parser-js from 0.7.32 to 0.7.33 in /e2e/web-tests by @dependabot in #2417
- Bump loader-utils from 1.4.0 to 1.4.2 in /e2e/web-tests by @dependabot in #2416
- Bump decode-uri-component from 0.2.0 to 0.2.2 in /e2e/web-tests by @dependabot in #2415
- Add
Handler state
section to sidebar by @j-piasecki in #2422 - Bump webpack from 5.73.0 to 5.76.1 in /docs by @dependabot in #2436
- chore: set library namespace in build script by @kkafar in #2435
- docs: add appjs banner by @kacperkapusciak in #2432
- Bump @xmldom/xmldom from 0.7.6 to 0.7.9 in /e2e/web-tests by @dependabot in #2444
- Bump @sideway/formula from 3.0.0 to 3.0.1 in /e2e/web-tests by @dependabot in #2445
- Bump minimist from 1.2.5 to 1.2.8 in /example by @dependabot in #2456
- Move
GestureHandlerRootView
tocomponents
directory by @j-piasecki in #2468 - Remove unnecessary
throw
by @j-piasecki in #2446
New Contributors
- @Nodonisko made their first contribution in #2413
- @ntocampos made their first contribution in #2426
- @UNIDY2002 made their first contribution in #2431
- @magrinj made their first contribution in #2447
Full Changelog: 2.9.0...2.10.0
2.9.0
❗ Important changes
- Support React Native 0.71 by @j-piasecki in #2313
🐛 Bug fixes
- Use
ReturnType
instead of explicitAnimatedInterpolation
type by @j-piasecki in #2294 - Fix default
shouldCancelWhenOutside
on iOS and Android by @Warus15 in #2297 - Fix
onBegin
andonTouchesDown
event ordering on iOS by @j-piasecki in #2278 - Fix buttons getting locked in some cases on Android by @j-piasecki in #2315
- fix RNGH not working in pnpm project by @chj-damon in #2334
- GestureDetector: more checks for mounted component by @phryneas in #2335
- Fix
GestureDetector
not working when the underlying view changes by @j-piasecki in #2092 - Cocoapods: Fix deprecated/removed File.exists method by @tomekzaw in #2368
🔢 Miscellaneous
- Update React Native to 0.70.3 in the example apps by @j-piasecki in #2267
- Reformat iOS codebase by @j-piasecki in #2296
- Update the commit hash in
.git-blame-ignore-revs
by @j-piasecki in #2306 - Provide proper Algolia Search API key by @kacperkapusciak in #2308
- Fix search modal styling in the docs by @j-piasecki in #2309
- Bump loader-utils from 2.0.0 to 2.0.3 in /docs by @dependabot in #2311
- Fixed typo in doc: cancelsToucesInView > cancelsTouchesInView by @vidalmaxime in #2318
- Bump decode-uri-component from 0.2.0 to 0.2.2 by @dependabot in #2338
- Bump loader-utils from 2.0.3 to 2.0.4 in /docs by @dependabot in #2321
- Bump qs from 6.10.1 to 6.11.0 by @dependabot in #2342
- Bump decode-uri-component from 0.2.0 to 0.2.2 in /FabricExample by @dependabot in #2340
- [docs] Fixed doubleTap example in docs by @robwalkerco in #2349
- Bump json5 from 2.2.1 to 2.2.3 in /docs by @dependabot in #2366
- Bump json5 from 2.2.1 to 2.2.3 in /FabricExample by @dependabot in #2365
New Contributors
- @vidalmaxime made their first contribution in #2318
- @chj-damon made their first contribution in #2334
- @robwalkerco made their first contribution in #2349
Full Changelog: 2.8.0...2.9.0
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