react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.

MIT License

Downloads
4.7M
Stars
5.8K
Committers
229

Bot releases are visible (Hide)

react-native-gesture-handler - 1.9.0

Published by jakub-gonet almost 4 years ago

This release mainly fixes problems with hitslop property and web implementation, adds two-finger scrolling on iPadOS, adds tap sound on touchables, and improves TS typings.

πŸ› Bug fixes

  • Fix GestureHandler isWithinBounds top hitslop (#1202) by @eeynard
  • Fix destructuring ref.props on the web (#1220) by @hosseinmd

πŸ‘ Improvements

  • make PressGestureHandler web implementation to pass along the move event and fix the propTypes issue (#1098) by @connectdotz
  • Support RN headers in both namespaces on iOS (#1183) by @grit96
  • fix: move Swipeable and DrawerLayout type definition (#955) by @Naturalclar
  • Fix typings for enums (#1055) by @iyegoroff
  • Allow two finger touchpad scrolling on iPadOS (#1128) by @robertherber and @jakub-gonet
  • Allow minDurationMs=0 in LongPressGestureHandler (#1216) by @jacobp100
  • Add sound to Touchables on Android (#1172) by @jakub-gonet

πŸ”’ Miscellaneous

  • Update docs to 0.63 (#1185) by @jakub-gonet
  • Add note about onGestureEvent in docs (#1189) by @jakub-gonet
  • Fix Xcode 12 compatibility (#1193) by @radko93
  • Update Detox and XCode CI version to 12 (#1191) by @jakub-gonet
  • Add fbjs as dependency (#1226) by @jakub-gonet
  • Fix wrong github link (#1229) by @sunnylqm
  • Fix broken link in docs (#1230) by @hehex9

πŸ™Œ Thank you for your contributions!

react-native-gesture-handler - 1.8.0

Published by jakub-gonet about 4 years ago

In this release, we fixed some long-standing threading issues which were crashing apps integrated with RNGH. Additionally,MAX_POINTERS_COUNT has been increased to support devices that handle up to 12 simultaneous touches.

πŸ› Bug fixes

  • Fix threading issue in RNGestureHandlerStateChangeEvent (#1171) by @jakub-gonet
  • Fix thread safety of RNGestureHandlerModule methods (#1173) by @jakub-gonet

πŸ‘ Improvements

  • Increase MAX_POINTERS_COUNT to 12 (#1175) by @jakub-gonet

πŸ”’ Miscellaneous

  • Update README.md (#1141) by @jakub-gonet
  • Fix installation and documentation links (#1144) by @kaueDM
  • Fix expo links in docs (#1145) by @jakub-gonet
  • Add issue templates (#1165) by @jakub-gonet
  • Upgrade hoist-non-react-statics to 3.3+ (#995) by @davidgovea
  • Removed website directory (#1174) by @jakub-gonet
  • Remove unused PointerEvents* enums (#1177) by @jakub-gonet
  • Fix RNGestureHandlerManager to use explicit imports (#1160) by @PeteTheHeat
  • Update yarn.lock, remove fsevents resolutions, add release-it (#1140) by @jakub-gonet

πŸ™Œ Thank you for your contributions!

react-native-gesture-handler - 1.7.0

Published by jakub-gonet about 4 years ago

❗ Important changes

  • Implement event coalescing (#997) by @simontreny
  • Make Touchable* work with Detox 17 (#1104) by @todorone

πŸ› Bug fixes

  • Remove overflow: hidden from BaseButton to fix shadows on iOS (#974) by @janicduplessis
  • Fix GestureHandleRootView type (#945) by @tobiasbu
  • Fix: Multitap coordinates (#990) by @hhunaid
  • Fix TapGestureHandler x/y coordinates being undefined (#953) by @latviancoder
  • Fix RectButton style prop forwarding (#1015) by @janicduplessis
  • Fixed #1042 'waitFor' for sibling pan handlers (#1043) by @iyegoroff

πŸ‘ Improvements

  • Use forwardRef instead of hacks in createNativeWrapper (#972) by @janicduplessis
  • Add scrollTo* methods to type definition (#940) by @ncuillery
  • Implement rippleRadius for TouchableNativeFeedback (#1069) by @vonovak

πŸ”’ Miscellaneous

  • Exclude docs/ and website/ in .npmignore by @kmagiera
  • Fix missing Platform import (#988) by @oblador
  • Fix tests (#978) by @vlkmx
  • Use prettier config file for better editor integration (#975) by @janicduplessis
  • Add new Software Mansion logo (#1013) by @jkadamczyk
  • Fixed typo on line 16 (#914) by @kant
  • Update RotationHandler docs (#708) by @damiansf
  • Adds Google Analytics tracking Id (#1086) by @tomekzawada
  • Update links & logo (#1088) by @jakub-gonet
  • Use https in maven repository link (#1061) by @licaon-kter
  • Autodeploy docs (#1115) by @jakub-gonet
  • Fix typo and grammar in docs (#1114) by @jackvial
  • Fix incorrect links and whitespace in docs (#1018) by @shirohana and @mrmuhammadali
  • Fix Example app on iOS (#1124) by @jakub-gonet
  • Use new template for docs (#1126) by @Forlify and @jakub-gonet
  • Update expo links in the Example app (#1131) by @adamgrzybowski

πŸ™Œ Thank you all for your contributions!

react-native-gesture-handler -

Published by kmagiera over 4 years ago

Patch release to include type definition fix from #978

react-native-gesture-handler - 1.6.0

Published by osdnk over 4 years ago

Small release including native changes. Take a look at modal support! πŸ€—

Rename mReactRootView to mRootView @osdnk
Remove extra hammerjs code (#951) @EvanBacon
Fix CI (#968) @jakub-gonet
Make RNGH workable inside modals on Android (#937) @osdnk

Thanks!

react-native-gesture-handler - 1.5.6

Published by osdnk over 4 years ago

react-native-gesture-handler - 1.5.5

Published by osdnk over 4 years ago

Minor release with including files in package.json: "GestureHandlerRootView.android.js", "GestureHandlerRootView.android.expo.js", "GestureHandlerButton.web.js",

react-native-gesture-handler - 1.5.4

Published by osdnk over 4 years ago

Minor release with bunch of fixes and improvements:

FIXES:
Syntax issue on paragraph 16 (#916) … @kant
Add missing LongPressGestureHandlerGestureEvent; fixes #723 (#860) @lafiosca
Multiply velocity to match velocity on native devices (#918) … @EvanBacon
Reset the gesture state when it begins to ensure tap gesture state is… … @EvanBacon
Fix gesture button states on web (#919) @EvanBacon
Added web routing for web (#911) @EvanBacon
[example] Disable the android-only test on other pl@Naturalclar 0) @EvanBacon
Update link to cli (#912) … @Naturalclar
gestureHandlerRootHOC: Parameterize generic Props. (#871) … @marcotoniut
Remove ToolbarAndroid (Lean Core)@newyankeecodeshop s
Replace Omit with Pick + Exclude (#899) … @newyankeecodeshop
Fix header mode on web (#901) @EvanBacon

IMPROVEMENTS:
Export a component for gesture handler root view (#925) … @satya164
Ensure that onHandlerStateChange is only called once per state change (… … @EvanBacon
Replaced HammerJS with EGJS/HammerJS (#896) … @codymurphyjones
Update how reanimated values are set (#905) @EvanBacon

Thanks ❀️

react-native-gesture-handler -

Published by kmagiera almost 5 years ago

Minor release with the following improvements:

  • Set shouldCancelWhenOutside to false for ScrollView by @Szymon20000 (#898)
  • Create .yarnclean to delete jquery security risk by @EvanBacon (#882)
  • Make it possible to use shouldActivateOnStart/disallowInterruption in Touchables. by @Szymon20000 (#897)
  • [web] fix activation error with draggable gestures by @EvanBacon (#881)
  • [web] Updated web example by @EvanBacon (#855)
  • [WEB] Fix x/y for PanGestureHandler onGestureEvent by @awinograd (#799)
  • Change links to software-mansion by @osdnk (#875)
  • Adding accessibilityLabel to NativeViewGestureHandlerProperties by @BlairWoods (#872)
  • fix: allow to override gesture handler props in Swipable by @jayu (#856)
react-native-gesture-handler -

Published by osdnk almost 5 years ago

Features

Add option to style touchable container by @njdancer

Other

Remove unused files by @friederbluemle
Update readme for running ios by @brobertsUPS
update getting started to include ios library import by @bell-steven

Thanks!

react-native-gesture-handler -

Published by kmagiera almost 5 years ago

Patch release with patch for issue #320

react-native-gesture-handler - 1.5.0

Published by kmagiera almost 5 years ago

Update that includes fix for an important crash reported in #657

This release includes several other improvements listed below:

  • Fixed small typo 'they does' -> 'they do' by @okwast (#801)
  • Bump to .61 by @osdnk (#807)
  • Updated drawer container style type by @zachariahtimothy (#785)
  • RTL support by @ShaMan123 (#515)
  • Update instructions for getting started by @brentvatne (#781)
  • fix: replaced expo demo app hyperlink by @sauzy34 (#778)
  • Move arrow functions to prototype by @vonovak (#769)
  • Fix styling in handler-pan.md by @wojtus7 (#759)
  • Updated mock to match States on master by @jdmg94 (#790)
  • Remove unused imports by @nabati (#768)
  • Update state.md by @rerissonrocha (#779)
  • Doc: Update Readme with React Native compabilty by @olethanh (#793)
  • Add imports to example by @aleqsio (#780)
  • feat: add RNGestureHandlerEnabledRootView constructor with attrs by @ferrannp (#755)

Thanks to everyone who contributed to this release πŸ™Œ

react-native-gesture-handler -

Published by kmagiera about 5 years ago

Patch release to include component memoization logic fix by @janicduplessis #654

react-native-gesture-handler -

Published by kmagiera about 5 years ago

IMPORTANT!! This version is compatible with React Native @ 0.60+

This version brings support for gesture-handler to react-native-web projects. Many thanks and congratulations to @EvanBacon for working on this project πŸŽ‰ 🍾 πŸ™‡

As a part of this release we publish changes to resolve compatibility issues with AndroidX that has broken support for imported projects (they way most react native apps are consumed by third party). As upgrade to 0.59 is required in order to be able to publish updates to google play store we decided to publish a release that is only compatible with 0.60 hoping for the community to update to one of the most recent versions of react native anyways.

It is possible to use this release with RN < 0.60 but one have to rely on reverse-jetifying of gesture handler library. Read more on that here https://github.com/mikehardy/jetifier#to-reverse-jetify--convert-node_modules-dependencies-to-support-libraries

πŸŽ‰ NEW FEATURES

  • Web Support by @EvanBacon (#555)
  • Add drawerLockMode to DrawerLayoutProperties by @alex-fournier (#620)

πŸ› BUG FIXES

  • [web] Added missing web files to the package.json by @EvanBacon (#701)
  • Disable the background accessibility when the drawer opens and overlaps (Android) by @mrjoema (#679)
  • Remove Math.sign polyfill by @janicduplessis (#658)
  • Remove react/react-native peerDependencies by @brentvatne (#635)
  • [web] Fixed buttons by @EvanBacon (#644)

πŸ‘ IMPROVEMENTS

  • use AndroidX by @dulmandakh (#734)
  • Introduce aliases for the unsafe lifecycles by @douglaszaltron (#718)
  • Added missing props in hitSlop for typescript definitions by @renjfk (#716)
  • [Typescript] Adds rippleColor to RectButtonProperties by @rszalski (#694)
  • Remove overlay 70% opacity to allow more flexibility by @famousfrank (#629)
  • target iOS 9.0 by @dulmandakh (#692)
  • docs: update Getting Started for React Native 0.60 by @thymikee (#687)
  • Use UNSAFE_componentWillUpdate in Swipable.js by @janicduplessis (#655)
  • Added missing style props for Swipeable in type definitions by @dimitarnestorov (#660)
  • fix: name of the package example by @nidelson (#672)
  • Add missing info on shouldCancelWhenOutside docs. by @grifotv (#630)
react-native-gesture-handler -

Published by kmagiera over 5 years ago

Patch release that removes import of ToolbarAndroid. This is to maintain compatibility with new react-native version. I apologize everyone who might expirience compatibility issues after upgrading. If you've been using ToolbarAndroid from react-native-gesture-handler package please replace import with the following construct:

import { createNativeWrapper } from 'react-native-gesture-handler';
const ToolbarAndroid = createNativeWrapper(ToolbarAndroid);
react-native-gesture-handler -

Published by kmagiera over 5 years ago

Patch release with c033d98b55171744408fbfe50e5b8113ee56fdbc on top of 1.1.2

react-native-gesture-handler -

Published by kmagiera over 5 years ago

Minor release that includes a number of improvements:

πŸ› BUG FIXES

  • Swipeable flow type errors fix by @pesaorus (#609)
  • Restore dropping handler or unmounting by @osdnk (#604)
  • Don't fail PanGestureHandler on tap by @osdnk (#603)
  • Fix TouchableHighlight initial 'underlayColor' value by @paolospag (#600)

πŸ‘ IMPROVEMENTS

  • Lazy import RN components by @kmagiera (#617)
  • Fixed lazy exports for web by @EvanBacon (#619)
  • [TS] Add argument to FlatList by @localnet (#616)
  • Replace propType dependency with string literals by @hampustagerud (#573)
  • Upgrade react native to 0.59.8 by @adamczyk777 (#592)
react-native-gesture-handler -

Published by kmagiera over 5 years ago

Patch release with #617 on top of 1.1.0

react-native-gesture-handler -

Published by kmagiera over 5 years ago

Patch release to include #593 fix for missing jest setup file

react-native-gesture-handler - 1.2.0

Published by jkadamczyk over 5 years ago

πŸŽ‰ NEW FEATURES

  • Export PureNativeButton by @osdnk (#531)
  • Add mocks for RNGH @osdnk (#493)

πŸ› BUG FIXES

  • Restrict web warning to only the first render of handler @jaulz (#575)
  • Fix hitSlop right and left properties not being respected on android by @adamczyk777 (#572)
  • Fix every Touchable crashes when the disabled prop is set to true by @todorone (#564)
  • Fix TouchableNativeFeedback background propTypes by @gmaclennan (#561)
  • Fix peerDependencies version of react-native by @heyman333 (#554)
  • Fix version of RNSlider by @osdnk (#532)
  • Fix Detox running with RNGH(possibly other libraries) by @ddzirt (#525)
  • Fix types for SwipeableProperties by @WhiteAbeLincoln (#521)
  • Update PanGestureHandler example to not crash by @tonyxiao (#512)
  • Ignore exclusive touch on tvOS by @kasinskas (#503)

πŸ‘ IMPROVEMENTS

  • Removed unused import by @Dmytraw (#588)
  • Export DrawerPosition, DrawerState, DrawerType and DrawerKeyboardDismissMode in TypeScript typings by @itsjgf (#568)
  • Add a note about buttons accessibility to docs by @adamczyk777 (#565)
  • Update handler-fling.md by @EvanBacon (#552)
  • Add missing 'activeOpacity' prop in BorderlessButtonProperties type by @itsjgf (#545)
  • Change style prop-type to any by @scottmas (#533)
  • Forward ref for flatlist by @scottmas (#534)
  • Fix minor typos in Docs by @codenjs (#528)
  • Add FlatList to the list of native components by @lukePeavey (#513)
  • Fix style in touchables by @osdnk (#491)
  • Update react-native-gesture-handler.d.ts by @sunnylqm (#498)
  • Enable NativeWrappers to use displayName from the wrapped component by @solkaz (#518)
  • Remove ViewPager and Slider in favor of exporting createNativeWrapper by @karanjthakkar (#506)
  • Add information and RN version compatibility by @osdnk (#504)
  • Remove peerDependencies for web by @brentvatne (#487)
  • Added tvos compatibility to podspec by @lukebars (#501)

πŸ™Œ Again thanks to all who contributed and submitted bug reports or helped with reviewing!

Package Rankings
Top 0.6% on Npmjs.org
Related Projects