Skip to content

Commit

Permalink
readme updated with gif
Browse files Browse the repository at this point in the history
  • Loading branch information
kurucaner committed Jan 14, 2025
1 parent d66d70e commit c0c5980
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A smooth, gesture-based toast notification component for React Native.

![Smooth Toast Preview](./docs/preview.gif)

## Features

- 🎨 Beautiful, minimal design with blur effect
Expand Down
Binary file added docs/preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion example/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,32 @@ export default function RootLayout() {
<View style={styles.container}>
<SmoothToastProvider />
<Button
title="Show Toast"
title="Show Success"
onPress={() => {
show({
toastType: "success",
message: "Hello, World!"
});
}}
/>
<Button
title="Show Error"
onPress={() => {
show({
toastType: "error",
message: "Hello, World!"
});
}}
/>
<Button
title="Show None"
onPress={() => {
show({
toastType: "none",
message: "Hello, World!"
});
}}
/>
</View>
</GestureHandlerRootView>
);
Expand Down

0 comments on commit c0c5980

Please sign in to comment.