Releases: software-mansion/react-native-gesture-handler
Releases · software-mansion/react-native-gesture-handler
2.17.0
❗ Important changes
- Add
ref
property toButtons
by @m-bert in #2903 - Unify touch events callbacks on
web
with respect toAndroid
by @m-bert in #2923 - Add
touchType
toTouchEvent
by @latekvo in #2941
👍 Improvements
- Refactor
GestureDetector
by @j-piasecki in #2901 - Remove lodash by @m-bert in #2916
PointerTracker
refactor. by @m-bert in #2931- Change
offsetX
andoffsetY
calculations inPointerEventManager
by @m-bert in #2938
🐛 Bug fixes
- Make
RootViewGestureHandler
handler cancel awaiting gestures by @j-piasecki in #2900 - Get right bridge by @piaskowyk in #2886
- Fix buttons getting stuck after scrolling on them by @j-piasecki in #2693
- Fix Detector creating and attaching all gestures twice on first mount by @j-piasecki in #2914
- Fix GestureDetector not working when its children change by @j-piasecki in #2921
- Fix GestureDetector not working correctly with suspense and recycling by @j-piasecki in #2925
- Fix nested buttons on the new architecture by @j-piasecki in #2926
- Unify scaled coordinates between
web
andnative
side. by @m-bert in #2943 - [Web] Send relative coords in event. by @m-bert in #2944
🔢 Miscellaneous
- Add information about
GestureHandlerRootView
area and change component name in quick start section in docs. by @m-bert in #2899 - Add Hire us section to docs by @patrycjakalinska in #2904
- Bump ejs from 3.1.7 to 3.1.10 by @dependabot in #2888
- Bump tar from 6.2.0 to 6.2.1 in /e2e/web-tests by @dependabot in #2859
- docs: add @swmansion/t-rex-ui by @kacperkapusciak in #2895
- Change navbar and footer to a reusable component by @patrycjakalinska in #2902
- Add dark mode to button in
Hire us
section by @patrycjakalinska in #2908 - Setup example app to use Expo by @bohdanprog in #2905
- Revert "docs: add @swmansion/t-rex-ui" by @kacperkapusciak in #2909
- Bump @sideway/formula from 3.0.0 to 3.0.1 by @dependabot in #2910
- docs: add @swmansion/t-rex-ui by @patrycjakalinska in #2911
- Fix symlink loop during pods installation by @j-piasecki in #2917
- Bump rexml from 3.2.6 to 3.2.8 in /FabricExample by @dependabot in #2915
- Add animated header to the example app by @j-piasecki in #2913
- Add option to auto-open last example in the example app by @j-piasecki in #2918
- Replace current theme components with
@swmansion/t-rex-ui
by @patrycjakalinska in #2906 - Bump rexml from 3.2.6 to 3.2.8 in /MacOSExample by @dependabot in #2924
- Bump rexml from 3.2.6 to 3.2.8 in /example by @dependabot in #2930
- feat: automatically copy codegen artifacts to paper by @maciekstosio in #2933
- Add swipeable example rewritten to new API by @latekvo in #2934
- Fix new swipeable using useMemo with incomplete dependency list by @latekvo in #2937
- docs: update Hire us links to directly lead to contact form by @kacperkapusciak in #2935
- chore(types): add missing pointerType to GestureTouchEvent by @mgcrea in #2928
- Bump braces from 3.0.2 to 3.0.3 in /example by @dependabot in #2945
- Bump braces from 3.0.2 to 3.0.3 in /e2e/web-tests by @dependabot in #2946
- Bump ws from 6.2.2 to 6.2.3 by @dependabot in #2947
- Bump ws from 6.2.2 to 6.2.3 in /e2e/web-tests by @dependabot in #2948
- Add
relativeCoords
average toPointerTracker
by @m-bert in #2939 - Add missing import in docs by @piaskowyk in #2950
New Contributors
- @bohdanprog made their first contribution in #2905
- @maciekstosio made their first contribution in #2933
- @mgcrea made their first contribution in #2928
Full Changelog: 2.16.2...2.17.0
2.16.2
🐛 Bug fixes
🔢 Miscellaneous
- Add examples to Gestures section in docs by @xnameTM in #2876
- Fix missing styles in gestures' InteractiveExamples by @patrycjakalinska in #2897
Full Changelog: 2.16.1...2.16.2
2.16.1
🐛 Bug fixes
- Fix remote debugger detection in bridgeless mode by @piaskowyk in #2864
- Fix
manualActivation
on web by @m-bert in #2869 - Fix old Gesture Handler API integration with Reaniamted by @piaskowyk in #2881
- [Web] Fix incorrect
startX
andstartY
values inPan
by @m-bert in #2871 - [Web] Add
minVelocity
toPan
custom activation criteria by @m-bert in #2884
👍 Improvements
🔢 Miscellaneous
- Bump Gesture Handler version in documentation by @m-bert in #2838
- Change
.web
files to default and add.native
by @m-bert in #2835 - Bump
typescript
version in example by @m-bert in #2848 - Disable flipper on CI by @m-bert in #2843
- Update supported RN versions by @m-bert in #2849
- Add state flow charts to Gesture Handler's documentation. by @latekvo in #2817
- Fix
cancell
typo by @m-bert in #2854 - Minor TS changes by @m-bert in #2872
- Add automatic og:image generation to docs by @xnameTM in #2851
- Fix typo in og:image generation by @kacperkapusciak in #2880
- Bump React Native in FabricExample to 0.74 by @m-bert in #2877
- Update yarn setup in the repository by @j-piasecki in #2882
- Release 2.16.1 by @j-piasecki in #2883
New Contributors
Full Changelog: 2.16.0...2.16.1
2.16.0
❗ Important changes
- Add
mouseButton
implementation on Android by @m-bert in #2680 - Add
pointerType
to event by @m-bert in #2760 - feat: add necessary changes for new arch on RN 0.74 by @WoLewicki in #2766
- Add
touchAction
prop. by @m-bert in #2787 - Allows to apply different border radius to RectButton component by @camilossantos2809 in #2792
- Improve RectButton border styles on Android by @camilossantos2809 in #2798
- Make FlingHandler use velocity as the activation metric. by @latekvo in #2796
- Add corner area detection to Fling gesture. by @latekvo in #2807
🐛 Bug fixes
- Add rotation and pinch velocity on macOS by @jfedak in #2706
- Fix
ConcurrentModificationException
. by @m-bert in #2750 - Fix pointers count on iOS by @m-bert in #2755
- fix: remove usage of bridge uimanager in one more place by @WoLewicki in #2768
- Remove hardcoded version of
cocoapods
by @m-bert in #2772 - Move
customDirectEventTypes
to separate files. by @m-bert in #2786 - Fix nested taps activation by @m-bert in #2759
- Cancel handlers by
NativeViewGestureHandler
by @m-bert in #2788 - Make simultaneous handlers always symmetric on iOS by @j-piasecki in #2800
- Update mocks to work when testing for the new arch by @j-piasecki in #2801
- fix(web): After swiping closed, the Swipeable component cannot be swiped open again by @yatessss in #2802
- Remove event listeners on handler drop by @m-bert in #2815
- Use correct origin point for calculating the absolute position on Android by @j-piasecki in #2826
- Add check when removing handlers from orchestrator by @m-bert in #2831
- Use
locationOfTouch:inView
overlocationInView
for focal point by @rrebase in #2834
👍 Improvements
- Pass
{ flex: 1 }
as default style toGestureHandlerRootView
by @kacperkapusciak in #2757 - Stop sending event on pressure changes by @m-bert in #2762
- feat: use proper APIs for newest RN versions on new arch by @WoLewicki in #2767
- Remove circular dependencies on web by @m-bert in #2783
- Address compilation warnings by @m-bert in #2597
- Add
userSelect
to TouchableOpacity by @m-bert in #2812 - Web
Orchestrator
refactor. by @m-bert in #2819 - Replace
mach_absolute_time
withCACurrentMediaTime
by @j-piasecki in #2830
🔢 Miscellaneous
- Restyle Gesture Handler Documentation by @patrycjakalinska in #2753
- Fix incorrect link to Github repository by @patrycjakalinska in #2761
- Add links to each gesture on landing in docs by @kacperkapusciak in #2763
- Update pods on CI by @m-bert in #2765
- Restyle steps in docs by @kacperkapusciak in #2774
- Fix wrong admonition color on initial render by @kacperkapusciak in #2779
- Various style fixes in docs by @kacperkapusciak in #2780
- Add closable App.js banner to docs landing page by @patrycjakalinska in #2781
- Add
mouseButton
description to docs. by @m-bert in #2789 - Add
pointerType
description to docs. by @m-bert in #2791 - Add
enableContextMenu
description to docs. by @m-bert in #2790 - Add
touchAction
description to docs. by @m-bert in #2794 - docs: change accent color to blue by @kacperkapusciak in #2795
- Change
MouseButton
export type. by @m-bert in #2804 - Fix babel config in the root project by @j-piasecki in #2717
New Contributors
- @patrycjakalinska made their first contribution in #2753
- @camilossantos2809 made their first contribution in #2792
- @yatessss made their first contribution in #2802
- @latekvo made their first contribution in #2796
- @rrebase made their first contribution in #2834
Full Changelog: 2.15.0...2.16.0
2.15.0
❗ Important changes
- macOS Support by @HeroBanana and @jfedak in #2588
- feat: add visionOS support by @tomekzaw in #2743
- Add
mouseButton
prop by @m-bert in #2676 - Migrate Gesture Handler to TurboModule by @j-piasecki in #2354
🐛 Bug fixes
- Add checks for the same instance of handler usage across multiple
GestureDetectors
by @m-bert in #2694 - Remove
didMountComponentsWithRootTag
on the new arch by @j-piasecki in #2687 - Fix double start when
activateAfterLongPress
is used by @j-piasecki in #2628 - Reset relevant handler when recognizer gets reset. by @j-piasecki in #2705
- Fix
inactive
handlers staying at finished state by @m-bert in #2738 - Change functions in windows module file to no-ops. by @m-bert in #2741
- Fix handlers coming back from being cancelled by @j-piasecki in #2704
- fix: restore ReactMethod annotation by @WoLewicki in #2722
🔢 Miscellaneous
- Bump react-devtools-core from 4.27.6 to 4.28.4 in /example by @dependabot in #2650
- Add
workflow_dispatch
to workflows by @j-piasecki in #2295 - Update supported versions in readme and in docs by @j-piasecki in #2684
- Prevent GH actions trigger on forks, update template by @j-piasecki in #2696
- Auto add
Platform: MacOS
label whenMacOS
is picked in the issue by @j-piasecki in #2699 - Change eslint
ban-types
to warning. by @m-bert in #2714 - Fix macOS warning message by @jfedak in #2713
- Bump dependencies to stable React Native 0.73.2 by @j-piasecki in #2698
- Add macOS app icon by @jfedak in #2723
- Bump follow-redirects from 1.15.3 to 1.15.4 in /e2e/web-tests by @dependabot in #2719
New Contributors
- @mrousavy made their first contribution in #2690
- @HeroBanana made their first contribution in #2588
- @fxamauri made their first contribution in #2712
- @jfedak made their first contribution in #2713
- @computerjazz made their first contribution in #2715
Full Changelog: 2.14.0...2.15.0
2.14.1
🐛 Bug fixes
- fix: Fix types for TouchableWithoutFeedback by @mrousavy in #2690
- Add exclude list for PointerCapture by @m-bert in #2703
- fix: types for gestureHandlerRootHOC by @fxamauri in #2712
- Fix onUp in Fling by @m-bert in #2709
- fix(worklet): fix workletization of touch event gesture callbacks by @computerjazz in #2715
Full Changelog: 2.14.0...2.14.1
2.14.0
❗ Important changes
- Remove Gesture Handler limits on Android by @m-bert in #2672
- Add a new gesture relation -
blocksHandlers
- working likereversed waitFor
by @j-piasecki in #2627 - Support React Native 0.73 by @j-piasecki in #2671
🐛 Bug fixes
- Fix double
onPress
by @m-bert in #2657 - Fix tvOS build by @m-bert in #2654
- Add a non-null assertion for
reactApplicationContext.javaScriptContextHolder
by @UNIDY2002 in #2662 - Move REACT_NATIVE_VERSION to native-only code by @chriscoomber in #2666
- Fix selection when TalkBack is enabled by @m-bert in #2669
- Fix inputs focus on safari by @m-bert in #2675
🔢 Miscellaneous
- Bump browserify-sign from 4.2.1 to 4.2.2 in /example by @dependabot in #2661
- Change Alert to console.log in new docs by @m-bert in #2670
- Remove
handlersToCancel
on web. by @m-bert in #2679
New Contributors
- @chriscoomber made their first contribution in #2666
Full Changelog: 2.13.4...2.14.0
2.13.4
🐛 Bug fixes
- Fix background color when
foreground
is set. by @m-bert in #2642 - Inline adding spec dependencies by @j-piasecki in #2653
🔢 Miscellaneous
- Bump @babel/traverse from 7.22.20 to 7.23.2 in /e2e/web-tests by @dependabot in #2646
- Bump react-devtools-core from 4.28.0 to 4.28.4 in /e2e/web-tests by @dependabot in #2651
Full Changelog: 2.13.3...2.13.4
2.13.3
👍 Improvements
- [iOS] Update podspec to use install_modules_dependencies by @cipolleschi in #2635
What's Changed
New Contributors
- @cipolleschi made their first contribution in #2635
Full Changelog: 2.13.2...2.13.3
2.13.2
🐛 Bug fixes
👍 Improvements
- New onSwipeableOpenDragStart and onSwipeableCloseDragStart events by @rampazzo1989 in #2589
- Remove jcenter by @ChaseKnowlden in #2610
- Add buildconfig flag for AGP8+ by @pvegh in #2599
🔢 Miscellaneous
- Update dependencies in e2e/web-tests by @m-bert in #2601
- Bump @sideway/formula from 3.0.0 to 3.0.1 in /FabricExample by @dependabot in #2605
- Bump @sideway/formula from 3.0.0 to 3.0.1 in /docs by @dependabot in #2602
- Give some love to Gesture Handler docs by @kacperkapusciak in #2607
- Fix typo in Composing gestures docs by @S1D007 in #2614
- Bump postcss from 8.4.30 to 8.4.31 in /e2e/web-tests by @dependabot in #2623
- Bump postcss from 8.4.14 to 8.4.31 in /docs by @dependabot in #2621
- Bump @sideway/formula from 3.0.0 to 3.0.1 in /example by @dependabot in #2606
New Contributors
- @rampazzo1989 made their first contribution in #2589
- @ChaseKnowlden made their first contribution in #2610
- @pvegh made their first contribution in #2599
- @S1D007 made their first contribution in #2614
Full Changelog: 2.13.1...2.13.2