In android we can implement with reanimated?
eduardoborges opened this issue ยท 8 comments
Bring more performance to the library, buuut... reanimated must be a lib dep. It's a problem?
I think a better solution would be to use a native Android toast. https://developer.android.com/guide/topics/ui/notifiers/toasts
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?
I haven't, but I'm open to suggestions! There's also the Android Snackbar
@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.
is there an english version of the docs?
@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?
Oh, cool yeah that works.
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.