Giter Site home page Giter Site logo

Comments (8)

nandorojo avatar nandorojo commented on August 28, 2024 6

I think a better solution would be to use a native Android toast. https://developer.android.com/guide/topics/ui/notifiers/toasts

from burnt.

nandorojo avatar nandorojo commented on August 28, 2024 3

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.

fobos531 avatar fobos531 commented on August 28, 2024 1

@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.

fobos531 avatar fobos531 commented on August 28, 2024

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.

nandorojo avatar nandorojo commented on August 28, 2024

I haven't, but I'm open to suggestions! There's also the Android Snackbar

from burnt.

alantoa avatar alantoa commented on August 28, 2024

@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.

nandorojo avatar nandorojo commented on August 28, 2024

is there an english version of the docs?

from burnt.

nandorojo avatar nandorojo commented on August 28, 2024

Oh, cool yeah that works.

from burnt.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.