react-native-snackbar
react-native-snackbar copied to clipboard
Question : Is there any way to know whether the snackbar is opened
I have an absolute positioned Fab button that should be hidden when the snackbar is opened, is there any way to know whether the snackbar is visible or not ?
Thanks
Hi @dngconsulting, as far as I know, Android doesn't provide callbacks for this and the timing can vary depending on platform. I'd welcome a PR if you know of a good solution.
I want to know some similar thing. How can I know if SnackBar
is closed? I tried to add the function in onPress
in action
but what if the SnackBar is dismissed after the duration of LENGTH_LONG
I have passed to duration.