Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In android we can implement with reanimated? #2

Closed
eduardoborges opened this issue Nov 20, 2022 · 8 comments
Closed

In android we can implement with reanimated? #2

eduardoborges opened this issue Nov 20, 2022 · 8 comments

Comments

@eduardoborges
Copy link

Bring more performance to the library, buuut... reanimated must be a lib dep. It's a problem?

@nandorojo
Copy link
Owner

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

@fobos531
Copy link

fobos531 commented Nov 21, 2022

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?

@nandorojo
Copy link
Owner

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

@alantoa
Copy link
Contributor

alantoa commented Nov 21, 2022

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

@nandorojo
Copy link
Owner

is there an english version of the docs?

@fobos531
Copy link

fobos531 commented Dec 4, 2022

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

@nandorojo
Copy link
Owner

Oh, cool yeah that works.

@nandorojo
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants