-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update docs to reflect current API
- Loading branch information
1 parent
a5e5438
commit 98e234c
Showing
18 changed files
with
392 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Props Comparison with Sonner | ||
|
||
## toast(): | ||
|
||
| Property | Reanimated Toasts | Sonner | | ||
| :----------------- | ----------------- | ------ | | ||
| description | ✅ | ✅ | | ||
| closeButton | ✅ | ✅ | | ||
| invert | ✅ | ✅ | | ||
| important | ✅ | ✅ | | ||
| duration | ✅ | ✅ | | ||
| position | ✅ | ✅ | | ||
| dismissible | ✅ | ✅ | | ||
| icon | ✅ | ✅ | | ||
| action | ✅ | ✅ | | ||
| id | ✅ | ✅ | | ||
| onDismiss | ✅ | ✅ | | ||
| onAutoClose | ✅ | ✅ | | ||
| unstyled | ✅ | ✅ | | ||
| actionButtonStyles | ✅ | ✅ | | ||
| cancelButtonStyles | ✅ | ✅ | | ||
| cancel | ❌ | ✅ | | ||
| action as JSX | ❌ | ✅ | | ||
| loading | ❌ | ✅ | | ||
| Headless | ❌ | ✅ | | ||
| Dynamic position | ❌ | ✅ | | ||
| important | ❌ | ✅ | | ||
|
||
## Toaster: | ||
|
||
| Property | Reanimated Toasts | Sonner | | ||
| :----------------------- | ----------------- | ------ | | ||
| theme | ✅ | ✅ | | ||
| visibleToasts | ✅ | ✅ | | ||
| position | ✅ | ✅ | | ||
| closeButton | ✅ | ✅ | | ||
| invert | ✅ | ✅ | | ||
| toastOptions | ✅ | ✅ | | ||
| gap | ✅ | ✅ | | ||
| icons | ✅ | ✅ | | ||
| `swipToDismissDirection` | ✅ | ❌ | | ||
| dir | ❌ | ✅ | | ||
| richColors | ❌ | ✅ | | ||
| expand | 🕸️ | ✅ | | ||
| offset | ❌ | ✅ | | ||
| hotkey | 🕸️ | ✅ | | ||
| loadingIcon | ❌ | ✅ | | ||
| pauseWhenPageIsHidden | ❌ | ✅ | | ||
| cn | ❌ | ✅ | | ||
|
||
**🕸️: Not applicable for native apps.** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.