cooperka / react-native-snackbar

:candy: Material Design "Snackbar" component for Android and iOS.
Other
823 stars 152 forks source link

Fix Android bug to show Snackbar over multiple modals rendered #179

Closed ManuelMGM closed 3 years ago

ManuelMGM commented 3 years ago

Hi @cooperka, i was facing the not common scenario trying to render Snackbar over multiple modals.

On iOS devices issue in not reproducible.

On Android instead, when multiple modals were rendered, snackbar is showing behind modala (only over the first modal dispatched). Seems like chages made on this fix were not completely correct. The order of modals view added on the ArrayList should be reverse.

I've tested and now is working fine on both iOS and Android devices.

Hope it helps! Manuel.

cooperka commented 3 years ago

Thanks for testing this @ManuelMGM! In the absence of a robust way for me to verify this myself, I'll trust that this improves things for most users (though it may have the opposite effect on some apps who expect it to behave the old way). I'll note this in the release notes.