Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shows extra blue(info) bar when any message slides up. #6

Closed
zsajjad opened this issue Apr 19, 2016 · 11 comments
Closed

Shows extra blue(info) bar when any message slides up. #6

zsajjad opened this issue Apr 19, 2016 · 11 comments

Comments

@zsajjad
Copy link

zsajjad commented Apr 19, 2016

_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

@KBLNY
Copy link
Owner

KBLNY commented Apr 19, 2016

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?

@emiraydin
Copy link
Contributor

@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?

@KBLNY
Copy link
Owner

KBLNY commented Apr 20, 2016

Your MessageBarcomponent 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

@zsajjad
Copy link
Author

zsajjad commented Apr 20, 2016

@KBLNY using RN v0.23 & react-native-message-bar v1.4.0!

@KBLNY
Copy link
Owner

KBLNY commented Apr 20, 2016

Please update to v1.4.2

@shukerullah
Copy link

@KBLNY thanks, blue bar is not appearing after updating to v.14.2

@KBLNY KBLNY closed this as completed Apr 20, 2016
@antonzy
Copy link

antonzy commented Apr 26, 2016

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.

@KBLNY
Copy link
Owner

KBLNY commented Apr 28, 2016

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

@antonzy
Copy link

antonzy commented May 1, 2016

@KBLNY I'm using https://github.com/aksonov/react-native-router-flux.

@antonzy
Copy link

antonzy commented May 8, 2016

@KBLNY I wish to add that it appears over the status bar, even if alert position is 'bottom'

@marcosinigaglia
Copy link

Any news on this bug?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants