Skip to content

Commit 6d909f3

Browse files
committed
Minor adjustments
1 parent 5fcdc6c commit 6d909f3

3 files changed

Lines changed: 8 additions & 20 deletions

File tree

packages/docs-gesture-handler/docs/components/reanimated-drawer-layout.mdx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,14 @@ import ReanimatedDrawerLayout from 'react-native-gesture-handler/ReanimatedDrawe
2020

2121
### drawerType
2222

23-
<CollapsibleCode
24-
label="Show composed types definitions"
25-
expandedLabel="Hide composed types definitions"
26-
lineBounds={[0, 1]}
27-
src={`
23+
```ts
2824
drawerType?: DrawerType;
29-
30-
export enum DrawerType {
31-
FRONT,
32-
BACK,
33-
SLIDE,
34-
}
35-
`}/>
25+
```
3626

3727
Specifies the way the drawer will be displayed.
3828
Accepts values of the `DrawerType` enum. Defaults to `FRONT`.
3929

40-
| Type | Description |
30+
| `drawerType` | Description |
4131
| -- | -- |
4232
|`FRONT` | The drawer will be displayed above the content view. |
4333
|`BACK` | The drawer will be displayed below the content view, revealed by sliding away the content view. |

packages/docs-gesture-handler/docs/components/touchables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_label: Touchables
55
---
66

77
:::warning
8-
Touchables will be removed in the future version of Gesture Handler. Use Pressable instead.
8+
Touchables will be removed in the future version of Gesture Handler. Use [`Pressable`](/docs/components/pressable) instead.
99
:::
1010

1111
Gesture Handler library provides an implementation of RN's touchable components that are based on [native buttons](buttons.mdx) and does not rely on JS responder system utilized by RN. Our touchable implementation follows the same API and aims to be a drop-in replacement for touchables available in React Native.
@@ -28,12 +28,12 @@ Our intention was to make switch for these touchables as simple as possible. In
2828
need only to change imports of touchables.
2929

3030
:::info
31-
Gesture Handler's TouchableOpacity uses native driver for animations by default. If this causes problems for you, you can set `useNativeAnimations` prop to false.
31+
Gesture Handler's `TouchableOpacity` uses native driver for animations by default. If this causes problems for you, you can set `useNativeAnimations` prop to false.
3232
:::
3333

3434
### Example:
3535

36-
```javascript
36+
```ts
3737
import {
3838
TouchableNativeFeedback,
3939
TouchableHighlight,
@@ -44,7 +44,7 @@ import {
4444

4545
has to be replaced with:
4646

47-
```javascript
47+
```ts
4848
import {
4949
TouchableNativeFeedback,
5050
TouchableHighlight,
@@ -53,4 +53,4 @@ import {
5353
} from 'react-native-gesture-handler';
5454
```
5555

56-
For a comparison of both touchable implementations see our [touchables example](https://github.com/software-mansion/react-native-gesture-handler/blob/main/apps/common-app/src/release_tests/touchables/index.tsx)
56+
For a comparison of both touchable implementations see our [touchables example](https://github.com/software-mansion/react-native-gesture-handler/blob/main/apps/common-app/src/legacy/release_tests/touchables/index.tsx)

packages/docs-gesture-handler/docs/guides/testing.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ getByGestureTestId: (testID: string) => Gesture;
8686
Returns opaque data type associated with gesture. Gesture is found via [`testID`](/docs/gestures/use-pan-gesture#testid) attribute in rendered
8787
components.
8888

89-
- `testID` - String identifying gesture.
90-
9189
:::warning
9290
`testID` must be unique among components rendered in test.
9391
:::

0 commit comments

Comments
 (0)