Skip to content

Commit 5c40a6f

Browse files
committed
Add import info to docs
1 parent 00c7f2f commit 5c40a6f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/docs-gesture-handler/docs/guides

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ RNGH provides APIs, specifically [`fireGestureHandler`](#firegesturehandler) and
2828
### fireGestureHandler
2929

3030
```ts
31+
import { fireGestureHandler } from 'react-native-gesture-handler/jest-utils';
32+
3133
fireGestureHandler: (componentOrGesture, eventList) => void;
3234
```
3335

@@ -80,6 +82,8 @@ const allImplicits = []; // 3 events, one BEGIN, one ACTIVE, one END with defaul
8082
### getByGestureTestId
8183

8284
```tsx
85+
import { getByGestureTestId } from 'react-native-gesture-handler/jest-utils';
86+
8387
getByGestureTestId: (testID: string) => Gesture;
8488
```
8589

0 commit comments

Comments
 (0)