Skip to content

Commit

Permalink
chore: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnartorfis committed Sep 4, 2024
1 parent b471682 commit 6d8147e
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,39 @@ npm install react-native-reanimated-toasts

## Usage

### In your App.tsx/entry point

```typescript
import { Toaster } from 'react-native-reanimated-toasts';

function App() {
return (
<View>
<NavigationContainer>...</NavigationContainer>
<Toaster />
</View>
);
}
```

```js
import { multiply } from 'react-native-reanimated-toasts';
### Show a toast

// ...
```typescript
import { toast } from 'react-native-reanimated-toasts';

const result = await multiply(3, 7);
function SomeComponent() {
return (
<Button
title="Show Toast"
onPress={() => toast('Hello, World!')}
/>
);
}
```

## Documentation

For more advanced usage, check out the [documentation](https://xx.com)

## Contributing

Expand Down

0 comments on commit 6d8147e

Please sign in to comment.