react-native-flash-message icon indicating copy to clipboard operation
react-native-flash-message copied to clipboard

FEATURE REQUEST: Persistent FlashMessage

Open frozencap opened this issue 1 year ago • 4 comments

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?

frozencap avatar Jun 29 '23 01:06 frozencap

Temp hack:

const recurShow = () =>
  showMessage({
    ...
    onHide: () => recurShow(),
  });
recurShow();

frozencap avatar Jun 29 '23 18:06 frozencap

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?

lucasferreira avatar Aug 09 '23 14:08 lucasferreira

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

frozencap avatar Aug 09 '23 15:08 frozencap

[shawarmaz] here you go, happy to help (:

PivaRos avatar Aug 17 '23 09:08 PivaRos