Closed zsajjad closed 8 years ago
Ok, thanks for your feedback. I'm investigating and I will keep you in touch. Btw, which versions of RN and message-bar do you use?
@zsajjad This happened for me when the MessageBar component wasn't a child of the top level component. Could you please confirm MessageBar is a child of the top component?
Your MessageBar
component should be added to your main top component. Let's named it A. You should register for the MessageBar
in this component A.
You can call for displaying the MessageBar
alert from A or one of its children components, that's the reason why you should register it.
When the component A is unmount you should release the registration of the MessageBar
and do the same for another main top component.
Btw, I'm working on a simpler way to call the alert like Alert.alert("my message)
working without registration and from any top or child component
@KBLNY using RN v0.23 & react-native-message-bar v1.4.0!
Please update to v1.4.2
@KBLNY thanks, blue bar is not appearing after updating to v.14.2
I also got the blue bar, using v1.5.2 Happens when I do a scene transition (like close an open modal) while the message is shown.
Hi, What module do you use for Modal? Can you please give me a piece of code regarding your transition? Thanks, I'll keep digging that
@KBLNY I'm using https://github.com/aksonov/react-native-router-flux.
@KBLNY I wish to add that it appears over the status bar, even if alert position is 'bottom'
Any news on this bug?
_showAlert(_message, _alertType = 'error') { MessageBarManager.showAlert({ message: _message, alertType: _alertType }); }
when duration ends small blue bar appears on top after the error bar exit animation ends