Releases: software-mansion/react-native-gesture-handler
Releases · software-mansion/react-native-gesture-handler
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
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