Comments (5)
It’s tough to say. Part of me wants to use Zeego to implement this part. I don’t love the Radix API for Toasts. It’s a bit too declarative for my liking. Hot Toast looks great, just have to decide which features to support.
from burnt.
React hot toast its really lite, and probably mixing it with externalStore to avoid using provider could achieve the same behaviour you have on android and iOS.
this is made using the headless module like this:
import toast, { useToaster } from 'react-hot-toast/headless';
from burnt.
For what it's worth: Tamagui has implemented a Toast
component which uses Burnt on native (optionally). This was my original vision, and I think it may be the correct behavior for Burnt. But I might add support for Sonner on Web, even though its APIs are quite different.
from burnt.
Web support has been added in 0.11
: https://github.com/nandorojo/burnt/releases/tag/v0.11
from burnt.
❤️
from burnt.
Related Issues (20)
- Can't import toaster for web HOT 4
- How can we trigger multiple toasts ? HOT 2
- Android Icon can not be changed HOT 2
- Using without Expo config HOT 7
- Cannot find native module 'Burnt' HOT 23
- Style toast individually in web? HOT 2
- Library doesn't support plain react-native for iOS HOT 4
- Unable to resolve "sonner" HOT 8
- Expo Fastlane Build Failure - SPAlert HOT 14
- Possibility to modify width? HOT 2
- Support 5x version. HOT 11
- Upgrading to Version 0.12.2 - index.ts:21 [burnt] toast() error: You need to add the <Toaster /> component to the root of your app for toasts to display on Web. There was no <Toaster /> found. HOT 2
- [Suggestion] IOS Alert Style for Android HOT 7
- How to style background color of toast ? HOT 3
- Text Alignment
- Not show all text in IOS HOT 15
- Do work when alert is dismissed/finished HOT 1
- Feature request: support for setting "color scheme" HOT 2
- Is it possible to add promise toast?
- Malformed calls from JS: Field size is diferent HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from burnt.