Skip to content

Commit

Permalink
update useTimedAction hook doc
Browse files Browse the repository at this point in the history
  • Loading branch information
JDMathew committed Aug 7, 2024
1 parent c606432 commit 8eb366a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/docs/hooks/useTimedAction.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ This hook allows to execute (or not) a callback respecting the user "Time to tak

## Usage

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

const {onTimeout} = useTimedAction();
const { onTimeout } = useTimedAction();
```

### onTimeout
Expand All @@ -28,10 +28,10 @@ async onTimeout(callback, timeInMilliseconds)

```jsx
await onTimeout(() => {
setShowContent(false);
setShowContent(false);
}, 30 * 1000);
```

## Related guidelines

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

0 comments on commit 8eb366a

Please sign in to comment.