Releases: software-mansion/react-native-gesture-handler
Releases · software-mansion/react-native-gesture-handler
2.21.2
2.21.1
2.21.0
❗ Important changes
- Create
ReanimatedDrawerLayout
component by @latekvo in #3146 - fix(web): broken at dropping by @MJRT in #3125
- [Web] Remove
findNodeHandle
function. by @m-bert in #3127 - [web] Add support for two finger pan by @m-bert in #3163
- [Web] Adjust
findNodeHandle
to properly detectSVG
by @m-bert in #3197
👍 Improvements
- [Web] Fix
KeyboardEventManager
listeners unmount by @m-bert in #3126 - feat: Clangd support by @coado in #3069
- [Web] Simplify
PointerTracker
methods by @m-bert in #3139 - Allow Android Rotation Gesture to continue after second Pointer Lift and Land by @DmitriyGalyanov in #3057
- Optimise
ReanimatedSwipeable
component by @latekvo in #3165 - [Web] Remove
collapsable
property 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
Pressable
being unresponsive by @latekvo in #3142 - Fix swipeable swiping to left when no
renderRightActions
is set by @latekvo in #3145 - Fix
onStart
callbacks ofReanimatedSwipeable
being called every update by @latekvo in #3151 - Fix elements dissapearing due to high values set to
threshold
props inReanimatedSwipeable
by @latekvo in #3153 - [
ReanimatedSwipeable
] Multiple bug fixes and improvements by @latekvo in #3149
🔢 Miscellaneous
stylusData
documentation. 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.tsx
by @latekvo in #3138 - Disable examples on unsupported platforms by @m-bert in #3135
- Add missing
ReanimatedSwipeable
documentation 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
TwoFingerPan
import 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
TouchEventManager
by @m-bert in #3101 - chore: Remove unused env variable by @tjzel in #3091
🐛 Bug fixes
- [tvOS] Fix tvOS not building because of
LongPressGestureHandler
by @latekvo in #3090 - Fix
Pressable
styling by removing unnecessary wrappingView
by @latekvo in #3087 - [iOS] Prevent crash when setting
cursor
style by @m-bert in #3097 - [Android] Fix border styles for touchable components with transparent background color by @kacperzolkiewski in #3096
- Fix
FlatList
type 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
getEventDispatcher
in ReactContextExtensions.kt by @tomekzaw in #3120 - Fix duplicate
libreactnative.so
andlibjsi.so
by @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
SWM
icon 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
ManualGestureHandler
by @m-bert in #3018 - [macOS] Add
LongPressGestureHandler
by @m-bert in #3014 - [macOS] Add
HoverGestureHandler
by @m-bert in #3027 - [macOS] Add
FlingGestureHandler
by @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
numberOfPointers
toLongPress
by @m-bert in #3043 - feat: add load method by @WoLewicki in #3063
- [Android] Drop support for
AGP version <= 7
by @latekvo in #3077
🐛 Bug fixes
- Fix
Pressable
not 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
scale
by @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
ReanimatedSwipeable
andPressable
to their inner components by @latekvo in #3039 - [Android] Fix
Hover
blocking scrolling with mouse wheel by @m-bert in #3067 - [jest] Fix
enabled
prop in buttons. by @m-bert in #3062 - [web] Fix
NativeViewGestureHandler
style. 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 format
script name by @m-bert in #3053 - Fix
lint-staged
by @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
onStart
firing onPan
withactivateAfterLongPress
when 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
Pressable
component 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
ForceTouch
warning 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
NativeViewGestureHandler
by @m-bert in #3004 - Add
enabled
prop 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
queueMicrotask
withrequestAnimationFrame
by @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
ScrollView
intercepting touches through out-of-bounds children by @j-piasecki in #3017 - Change
onPress
argument 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
LongPress
by @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-ui
to 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-ui
component by @patrycjakalinska in #2996 - Mention
drawerWillShow
inDrawerLayout
docs 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
hasPointerInside
tocontainsPointInView
by @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
checkIntegrityBetweenArchitectures
task when installed as a dependency by @j-piasecki in #2953
Full Changelog: 2.17.0...2.17.1