Skip to content

Commit

Permalink
Release 2.8.0 (#2290)
Browse files Browse the repository at this point in the history
## Description

Bump version to 2.8.0 and make docs version for 2.8.0.
  • Loading branch information
j-piasecki authored Oct 21, 2022
1 parent a8539d2 commit 004b56c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs/api/gestures/gesture-detector.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Starting with Reanimated-2.3.0-beta.4 Gesture Handler will provide a [StateManag

### `userSelect` (**web only**)

This parameter allows to specify which `userSelect` property should be applied to underlying view. Possible values are `"none" | "auto" | "text"`. If this parameter is not specified, default value is `"none"`.
This parameter allows to specify which `userSelect` property should be applied to underlying view. Possible values are `"none" | "auto" | "text"`. Defaults to `"none"`.
2 changes: 1 addition & 1 deletion docs/docs/gesture-handlers/api/common-gh.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Specifying `width` or `height` is useful if we only want the gesture to activate

### `userSelect` (**web only**)

This parameter allows to specify which `userSelect` property should be applied to underlying view. Possible values are `"none" | "auto" | "text"`. If this parameter is not specified, default value is `"none"`.
This parameter allows to specify which `userSelect` property should be applied to underlying view. Possible values are `"none" | "auto" | "text"`. Defaults to `"none"`.

### `onGestureEvent`

Expand Down
2 changes: 1 addition & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module.exports = {
label: '2.4.0 – 2.5.0',
},
'2.6.0': {
label: '2.6.0 – 2.7.0',
label: '2.6.0 – 2.8.0',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ GestureDetector will decide whether to use Reanimated to process provided gestur

Starting with Reanimated-2.3.0-beta.4 Gesture Handler will provide a [StateManager](./state-manager.md) in the [touch events](./touch-events.md) that allows for managing the state of the gesture.
:::

### `userSelect` (**web only**)

This parameter allows to specify which `userSelect` property should be applied to underlying view. Possible values are `"none" | "auto" | "text"`. Defaults to `"none"`. **Available since version 2.8.0**
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Specifying `width` or `height` is useful if we only want the gesture to activate

**IMPORTANT:** Note that this parameter is primarily designed to reduce the area where gesture can activate. Hence it is only supported for all the values (except `width` and `height`) to be non positive (0 or lower). Although on Android it is supported for the values to also be positive and therefore allow to expand beyond view bounds but not further than the parent view bounds. To achieve this effect on both platforms you can use React Native's View [hitSlop](https://facebook.github.io/react-native/docs/view.html#props) property.

### `userSelect` (**web only**)

This parameter allows to specify which `userSelect` property should be applied to underlying view. Possible values are `"none" | "auto" | "text"`. Defaults to `"none"`. **Available since version 2.8.0**

### `onGestureEvent`

Takes a callback that is going to be triggered for each subsequent touch event while the handler is in an [ACTIVE](../basics/state.md#active) state. Event payload depends on the particular handler type. Common set of event data attributes is documented [below](#event-data) and handler specific attributes are documented on the corresponding handler pages. E.g. event payload for [`PinchGestureHandler`](./rotation-gh.md#event-data) contains `scale` attribute that represents how the distance between fingers changed since when the gesture started.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-gesture-handler",
"version": "2.7.1",
"version": "2.8.0",
"description": "Experimental implementation of a new declarative API for gesture handling in react-native",
"scripts": {
"prepare": "bob build && husky install",
Expand Down

0 comments on commit 004b56c

Please sign in to comment.