react-native-snackbar icon indicating copy to clipboard operation
react-native-snackbar copied to clipboard

Inconsistency when opening new snackbar one after another.

Open Ajmal0197 opened this issue 5 years ago • 3 comments

I want snackbar to use two different coloured snackbar but the second one shows previous snackbar for a small time then shows actual one. I have already used Snackbar.dismiss() on leaving screen. But still this happens.

Below is video link: https://drive.google.com/file/d/1Cs35xSu8tDgh6LY7g7PyYQEjI14qZCMB/view?usp=drivesdk

Ajmal0197 avatar Nov 19 '20 08:11 Ajmal0197

Hi @Ajmal0197, thanks for the video documentation. Could you also explain what your code is doing? I see a flash of blue that's immediately replaced by yellow. Do you want both snackbars to show at the same time (not possible) or do you expect the blue one to have been visible for longer before switching to yellow?

cooperka avatar Nov 21 '20 00:11 cooperka

Hi @Ajmal0197, thanks for the video documentation. Could you also explain what your code is doing? I see a flash of blue that's immediately replaced by yellow. Do you want both snackbars to show at the same time (not possible) or do you expect the blue one to have been visible for longer before switching to yellow?

Hi @cooperka , On first screen i want to show yellow snackbar and on second blue one. But on second screen yellow one still shows for milliseconds then comes blue. I have already cleared it on page unmount.

Ajmal0197 avatar Nov 21 '20 03:11 Ajmal0197

Could you please share a working demo app on GitHub that I can test? It's hard to understand what the issue might be otherwise. Thanks!

cooperka avatar Nov 21 '20 18:11 cooperka