We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c606432 commit 8eb366aCopy full SHA for 8eb366a
packages/core/docs/hooks/useTimedAction.md
@@ -4,10 +4,10 @@ This hook allows to execute (or not) a callback respecting the user "Time to tak
4
5
## Usage
6
7
-```jsx
8
-import {useTimedAction} from 'react-native-ama';
+```jsx {1-2}
+import { useTimedAction } from '@react-native-ama/core';
9
10
-const {onTimeout} = useTimedAction();
+const { onTimeout } = useTimedAction();
11
```
12
13
### onTimeout
@@ -28,10 +28,10 @@ async onTimeout(callback, timeInMilliseconds)
28
29
```jsx
30
await onTimeout(() => {
31
- setShowContent(false);
+ setShowContent(false);
32
}, 30 * 1000);
33
34
35
## Related guidelines
36
37
-- [Timed actions](../guidelines/timed-actions)
+- [Timed actions](../../../../website/guidelines/timed-actions.md)
0 commit comments