Comments (8)
I think a better solution would be to use a native Android toast. https://developer.android.com/guide/topics/ui/notifiers/toasts
from burnt.
Burnt 0.8
now uses ToastAndroid
to add Android support.
yarn add burnt
Burnt.alert()
falls back to Burnt.toast()
on Android since there is no equivalent.
from burnt.
@nandorojo I can't believe I didn't think of it before, but React Native core actually has a ToastAndroid API built in - maybe that could be used until a more feature-fledged alternative is found & implemented?
from burnt.
I think a better solution would be to use a native Android toast. developer.android.com/guide/topics/ui/notifiers/toasts
@nandorojo Hey, I agree that the native toast is better in this case. However, the "vanilla" Android toast has an extremely simple/primitive API. Since we're using a 3rd party library for iOS already, maybe we could do the same for Android to achieve higher feature parity between the platforms. Have you come across an Android toast library that you like?
from burnt.
I haven't, but I'm open to suggestions! There's also the Android Snackbar
from burnt.
@nandorojo @fobos531 hey, if use native on Android, I'm recommended this https://github.com/getActivity/ToastUtils, it's very small and supports a wide variety of functions, can install and try it.
also have this, but I haven't try.
from burnt.
is there an english version of the docs?
from burnt.
Oh, cool yeah that works.
from burnt.
Related Issues (18)
- Consider using toast-swift HOT 1
- Multiline message HOT 3
- iOS build issue on latest version - v0.10.0 HOT 8
- Missing license
- Readme app.json docs cause linting warning, breaking build HOT 2
- Stopped working on iOS HOT 3
- 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
- Custom shadow colors/configuration options for the toast HOT 2
- Unable to resolve module `expo-modules-core` in bare React Native HOT 5
- Add Android Preview Video HOT 1
- Add Web Toast HOT 5
- ASN1Decoder pod install error HOT 2
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.