Releases: software-mansion/react-native-gesture-handler
Releases · software-mansion/react-native-gesture-handler
Release list
2.21.0
❗ Important changes
- Create
ReanimatedDrawerLayoutcomponent by @latekvo in #3146 - fix(web): broken at dropping by @MJRT in #3125
- [Web] Remove
findNodeHandlefunction. by @m-bert in #3127 - [web] Add support for two finger pan by @m-bert in #3163
- [Web] Adjust
findNodeHandleto properly detectSVGby @m-bert in #3197
👍 Improvements
- [Web] Fix
KeyboardEventManagerlisteners unmount by @m-bert in #3126 - feat: Clangd support by @coado in #3069
- [Web] Simplify
PointerTrackermethods by @m-bert in #3139 - Allow Android Rotation Gesture to continue after second Pointer Lift and Land by @DmitriyGalyanov in #3057
- Optimise
ReanimatedSwipeablecomponent by @latekvo in #3165 - [Web] Remove
collapsableproperty by @m-bert in #3203
🐛 Bug fixes
- [Android] Fix gestures being able to activate despite their parent already being active by @latekvo in #3095
- [MacOS] Fix
Pressablebeing unresponsive by @latekvo in #3142 - Fix swipeable swiping to left when no
renderRightActionsis set by @latekvo in #3145 - Fix
onStartcallbacks ofReanimatedSwipeablebeing called every update by @latekvo in #3151 - Fix elements dissapearing due to high values set to
thresholdprops inReanimatedSwipeableby @latekvo in #3153 - [
ReanimatedSwipeable] Multiple bug fixes and improvements by @latekvo in #3149
🔢 Miscellaneous
stylusDatadocumentation. by @m-bert in #3112- Update examples by @j-piasecki in #2919
- Make osx example utilise the common example app by @latekvo in #3055
- [docs] Improve Reanimated Swipeable documentation. by @latekvo in #3121
- [MacOS] fix header in the example app to look like the one on web. by @latekvo in #3134
- Add main branch protection scripts by @j-piasecki in #3133
- Remove redundant example entry in
App.tsxby @latekvo in #3138 - Disable examples on unsupported platforms by @m-bert in #3135
- Add missing
ReanimatedSwipeabledocumentation by @latekvo in #3150 - Change package description by @kacperkapusciak in #3162
- Remove Reanimated 2 version from the docs by @j-piasecki in #3183
- Bump version to 2.20.2 by @m-bert in #3185
- docs: Manage system color scheme changes by @patrycjakalinska in #3181
- Update Gemfiles in example apps by @j-piasecki in #3200
- Fix
TwoFingerPanimport by @m-bert in #3211 - Update outdated compatibility table in docs by @latekvo in #3212
- Bump express from 4.19.2 to 4.21.0 in /docs by @dependabot in #3110
- Bump micromatch from 4.0.5 to 4.0.8 in /example by @dependabot in #3155
- Bump serve-static from 1.15.0 to 1.16.2 in /MacOSExample by @dependabot in #3104
New Contributors
- @MJRT made their first contribution in #3125
- @DmitriyGalyanov made their first contribution in #3057
Full Changelog: 2.20.0...2.21.0
2.20.2
2.20.1
2.20.0
❗ Important changes
- Add support for React Native 0.76 by @j-piasecki in #3109
- [Web] Stylus support by @m-bert in #3107
- [Android] Stylus support by @m-bert in #3111
- [iOS] Stylus support by @m-bert in #3113
👍 Improvements
- Use node resolver to locate React Native package by @j-piasecki in #3093
- [Web] Remove
TouchEventManagerby @m-bert in #3101 - chore: Remove unused env variable by @tjzel in #3091
🐛 Bug fixes
- [tvOS] Fix tvOS not building because of
LongPressGestureHandlerby @latekvo in #3090 - Fix
Pressablestyling by removing unnecessary wrappingViewby @latekvo in #3087 - [iOS] Prevent crash when setting
cursorstyle by @m-bert in #3097 - [Android] Fix border styles for touchable components with transparent background color by @kacperzolkiewski in #3096
- Fix
FlatListtype by @j-piasecki in #3029 - [macOS] Fix rotation by @m-bert in #3122
- [Jest] Don't fire callbacks on disabled gestures by @m-bert in #3119
- Call
getEventDispatcherin ReactContextExtensions.kt by @tomekzaw in #3120 - Fix duplicate
libreactnative.soandlibjsi.soby @tomekzaw in #3118 - [Web] Remove hovering pointer from tracker. by @m-bert in #3115
- Fix button padding not being applied correctly on the new arch by @j-piasecki in #3106
🔢 Miscellaneous
- Bump serve-static from 1.14.1 to 1.16.2 by @dependabot in #3094
- Bump fast-xml-parser from 4.3.6 to 4.4.1 in /example by @dependabot in #3084
- Bump serve-static from 1.15.0 to 1.16.2 in /example by @dependabot in #3103
- Bump express from 4.19.2 to 4.21.0 in /e2e/web-tests by @dependabot in #3102
- Add chevron to the example app and center labels by @j-piasecki in #3108
- Add
SWMicon pack support. by @latekvo in #3114
New Contributors
- @tjzel made their first contribution in #3091
- @kacperzolkiewski made their first contribution in #3096
Full Changelog: 2.19.0...2.20.0
2.19.0
❗ Important changes
- [macOS] Add
ManualGestureHandlerby @m-bert in #3018 - [macOS] Add
LongPressGestureHandlerby @m-bert in #3014 - [macOS] Add
HoverGestureHandlerby @m-bert in #3027 - [macOS] Add
FlingGestureHandlerby @m-bert in #3028 - [
web] Add keyboard support to gesture handler by @latekvo in #3035
👍 Improvements
- Unify Vector-related constant naming scheme across Web and Android implementations by @latekvo in #3052
- Add
numberOfPointerstoLongPressby @m-bert in #3043 - feat: add load method by @WoLewicki in #3063
- [Android] Drop support for
AGP version <= 7by @latekvo in #3077
🐛 Bug fixes
- Fix
Pressablenot inferring dimensions from it's children by @latekvo in #3020 - Fix scroll view handler state change events by @coado in #2985
- Fix failing macOS build by @j-piasecki in #3033
- [web] Fix
scaleby @m-bert in #3031 - Fix Pressable props export by @j-piasecki in #3036
- [Web] Reset web-exclusive properties when handler is disabled. by @m-bert in #3041
- Fix
Pressables's interference with other gestures when nested by @latekvo in #3015 - [
ReanimatedSwipeable] Create separate spring configs to avoid overwriting ones already being used by @latekvo in #3045 - Forward unused props in
ReanimatedSwipeableandPressableto their inner components by @latekvo in #3039 - [Android] Fix
Hoverblocking scrolling with mouse wheel by @m-bert in #3067 - [jest] Fix
enabledprop in buttons. by @m-bert in #3062 - [web] Fix
NativeViewGestureHandlerstyle. by @m-bert in #3070 - fix: pinch gesture velocity expressed in scale factor per second on android by @coado in #3072
- fix: touch event absolute position by @coado in #3078
🔢 Miscellaneous
- Fix broken image and improve docs by @shubh73 in #3040
- [jest] Suppress warning about non-worklet callbacks by @m-bert in #3050
- Change
yarn formatscript name by @m-bert in #3053 - Fix
lint-stagedby @m-bert in #3060 - Playwright improvements by @m-bert in #3065
- Bump webpack from 5.83.1 to 5.94.0 in /docs by @dependabot in #3079
- [Web] Fix
onStartfiring onPanwithactivateAfterLongPresswhen gesture is disabled while being pressed down. by @latekvo in #3075 - Bump webpack from 5.88.2 to 5.94.0 in /e2e/web-tests by @dependabot in #3082
- Bump micromatch from 4.0.5 to 4.0.8 in /e2e/web-tests by @dependabot in #3068
- Bump rexml from 3.2.8 to 3.3.6 in /FabricExample by @dependabot in #3061
- Bump rexml from 3.2.8 to 3.3.3 in /example by @dependabot in #3058
- Bump fast-xml-parser from 4.3.2 to 4.4.1 in /MacOSExample by @dependabot in #3026
New Contributors
Full Changelog: 2.18.1...2.19.0
2.18.1
🐛 Bug fixes
What's Changed
- Bump ws from 6.2.2 to 6.2.3 in /example by @dependabot in #3003
- Bump requirejs from 2.3.6 to 2.3.7 by @dependabot in #3009
- Bump fast-xml-parser from 4.2.5 to 4.4.1 by @dependabot in #3016
- Bump ws from 6.2.2 to 6.2.3 in /docs by @dependabot in #3021
- Add documentation page for
Pressablecomponent by @latekvo in #2992 - Add docs page for Reanimated Swipeable by @latekvo in #2962
Full Changelog: 2.18.0...2.18.1
2.18.0
❗ Important changes
- Create a separate component out of the new Swipeable row by @latekvo in #2936
- Create gesturized pressable component by @latekvo in #2942, #2977, #2982, #2981
- Support for React Native 0.75 by @j-piasecki in #2966
👍 Improvements
- [macOS] Add
ForceTouchwarning by @m-bert in #2954 - Remove shared value read on the JS thread during detector update by @j-piasecki in #2957
- Use a newer constructor for all Gesture Handler events on Android by @j-piasecki in #2967
- Persist rotation and pinch gesture through pointer changes on android by @coado in #2983
- [macOS] Add
NativeViewGestureHandlerby @m-bert in #3004 - Add
enabledprop support to swipeable by @latekvo in #3011
🐛 Bug fixes
- Make handler comparator work only on non-null objects by @j-piasecki in #2964
- fix: bind scope to null to prevent issues with inline requires by @EvanBacon in #2972
- Replace
queueMicrotaskwithrequestAnimationFrameby @m-bert in #2969 - Resolve circular dependencies on JS side by @latekvo in #2970
- Fix Android native buttons emitting 2 press events when talkback is enabled by @latekvo in #3002
- Fix
ScrollViewintercepting touches through out-of-bounds children by @j-piasecki in #3017 - Change
onPressargument in buttons by @m-bert in #3006 - [macOS] Fix handlers not responding after opening context menu by @m-bert in #3008
- [iOS | macOS] Fix translation calculation in
LongPressby @m-bert in #3013 - Fix cancelling manual activation gestures blocking interactivity on iOS by @latekvo in #3007
🔢 Miscellaneous
- Bump ws from 6.2.2 to 6.2.3 in /FabricExample by @dependabot in #2949
- Bump braces from 3.0.2 to 3.0.3 in /MacOSExample by @dependabot in #2956
- docs: bump
@swmansion/t-rex-uito 0.0.12 by @patrycjakalinska in #2958 - Bump braces from 3.0.2 to 3.0.3 in /FabricExample by @dependabot in #2965
- Set consistent prettier version across all package.jsons by @latekvo in #2971
- Change naming scheme in package.json from camelCase to dash-case by @latekvo in #2973
- Unify comments and simplify some conditions. by @m-bert in #2984
- docs: Update Expo installation instructions by @amandeepmittal in #2991
- Bump fast-loops from 1.1.3 to 1.1.4 in /docs by @dependabot in #2986
- Remove plural form in docs by @m-bert in #2995
- Bump fast-loops from 1.1.3 to 1.1.4 in /example by @dependabot in #2994
- Don't run old arch integrity check on every PR by @j-piasecki in #2998
- docs: fix footer on landing by @patrycjakalinska in #2997
- docs: Replace HireUsSection with
@swmansion/t-rex-uicomponent by @patrycjakalinska in #2996 - Mention
drawerWillShowinDrawerLayoutdocs by @m-bert in #3000 - chore: Refactor gradle task to JS scripts by @maciekstosio in #3001
- Update dependencies related to tests by @j-piasecki in #3005
- [macOS] Switch
hasPointerInsidetocontainsPointInViewby @m-bert in #3012
New Contributors
- @coado made their first contribution in #2983
- @amandeepmittal made their first contribution in #2991
Full Changelog: 2.17.0...2.18.0
2.17.1
🐛 Bug fixes
- Don't register
checkIntegrityBetweenArchitecturestask when installed as a dependency by @j-piasecki in #2953
Full Changelog: 2.17.0...2.17.1
2.17.0
❗ Important changes
- Add
refproperty toButtonsby @m-bert in #2903 - Unify touch events callbacks on
webwith respect toAndroidby @m-bert in #2923 - Add
touchTypetoTouchEventby @latekvo in #2941
👍 Improvements
- Refactor
GestureDetectorby @j-piasecki in #2901 - Remove lodash by @m-bert in #2916
PointerTrackerrefactor. by @m-bert in #2931- Change
offsetXandoffsetYcalculations inPointerEventManagerby @m-bert in #2938
🐛 Bug fixes
- Make
RootViewGestureHandlerhandler 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
webandnativeside. by @m-bert in #2943 - [Web] Send relative coords in event. by @m-bert in #2944
🔢 Miscellaneous
- Add information about
GestureHandlerRootViewarea 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 ussection 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-uiby @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
relativeCoordsaverage toPointerTrackerby @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