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

How to show the message bar above navigation bar? #16

Open
iphonic opened this issue Jun 3, 2016 · 9 comments
Open

How to show the message bar above navigation bar? #16

iphonic opened this issue Jun 3, 2016 · 9 comments

Comments

@iphonic
Copy link

iphonic commented Jun 3, 2016

Hi , I was trying to show the message bar above the navigation bar I have, but it doesn't work with a navigation bar appearing. How to achieve this?

Can you please help.

Thanks.

@ararog
Copy link

ararog commented Jun 29, 2016

Maybe an offset prop can fix this. Will try this approach this weekend and submit a PR.

@ararog
Copy link

ararog commented Jun 29, 2016

@iphonic try set viewTopOffset prop, I believe that's the only way to go, for me place below navigationbar is enough.

@KBLNY
Copy link
Owner

KBLNY commented Aug 3, 2016

Hey there,
I suppose you use react-native-router-flux. Actually you can't because the MessageBar is attached to the current view and the navigation bar is at a higher level.
Even if you try viewTopOffset: -NavBarHeight you will make the alert bar displayed under the navigation bar.
I'm working on a redux implementation and will surely provide a way to do this in the next release.
Any ideas are welcome :)

@jaison-x
Copy link

Hello @KBLNY ,

Can not work with react-native-router-flux or is it not only possible to put it above the navbar?
I am trying to use with react-native-router-flux and I am getting problems.

Thank you.

@nonotest
Copy link

works fine with RNRF here.

@herarya
Copy link

herarya commented Feb 7, 2018

im using with react-native-router-flux works fine

screen shot 2018-02-07 at 11 53 10

@dustturtle
Copy link

@herarya would you please show a demo?

@herarya
Copy link

herarya commented Feb 9, 2018

@dustturtle
Copy link

got this done. Thanks a lot. @herarya

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

7 participants