react-native-flash-message
react-native-flash-message copied to clipboard
FEATURE REQUEST: Persistent FlashMessage
Great lib.
autoHide: false | true
both still allow the user to dismiss FlashMessage.
It would be great if we could also prevent the user from dismissing FlashMessage.
Is this doable with the current API?
Temp hack:
const recurShow = () =>
showMessage({
...
onHide: () => recurShow(),
});
recurShow();
Hi @shawarmaz,
I this case how user could dismiss the message? It will be always fixed at the top of the app? The only way to close will be if programmatically hide then?
Yes, programmatically.
Use cases are: Network Disconnected, Active Voice/Video Call, Recording Voice Memo, Tracking Location, and many more related to state rather than notifications
Opens up a whole slew of possibilities, making it no longer just a toast/message, but an "in-app status-bar".
Would be feature complete if it could push the entire app down as well, rather than zindexing over the app, a-la-Whatsapp, Discord, iOS Voice memos, Uber Driver, etc
[shawarmaz] here you go, happy to help (: