Skip to content

Commit 8eb366a

Browse files
committed
update useTimedAction hook doc
1 parent c606432 commit 8eb366a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/core/docs/hooks/useTimedAction.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ This hook allows to execute (or not) a callback respecting the user "Time to tak
44

55
## Usage
66

7-
```jsx
8-
import {useTimedAction} from 'react-native-ama';
7+
```jsx {1-2}
8+
import { useTimedAction } from '@react-native-ama/core';
99

10-
const {onTimeout} = useTimedAction();
10+
const { onTimeout } = useTimedAction();
1111
```
1212

1313
### onTimeout
@@ -28,10 +28,10 @@ async onTimeout(callback, timeInMilliseconds)
2828

2929
```jsx
3030
await onTimeout(() => {
31-
setShowContent(false);
31+
setShowContent(false);
3232
}, 30 * 1000);
3333
```
3434

3535
## Related guidelines
3636

37-
- [Timed actions](../guidelines/timed-actions)
37+
- [Timed actions](../../../../website/guidelines/timed-actions.md)

0 commit comments

Comments
 (0)