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

Add inline styleName to NavigationBar #104

Merged
merged 2 commits into from
Dec 30, 2016

Conversation

guilhermedecampo
Copy link
Contributor

Fix NavigationBar being hidden by ListView.

'.inline': {
container: {
width: window.width,
position: 'relative',
Copy link
Contributor

@SoHotSoup SoHotSoup Dec 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix indentation. Remove two extra spaces. Also, have you tested it how does it work in situations like this:

render() {
  return (
    <Screen>
      <NavigationBar />
      <ScrollView>
        {/*Some scrollable content*/}
      </ScrollView>
    </Screen>
  );
}

I want to know would scroll view's content overlap navigation bar after scroll... If it would, then add zIndex to navigation bar's style.

Also, could you add this styleName to the documentation as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Sorry for the indentation =(

Yeah I tested on ListView.. going to take a look on ScrollView component.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, @guilhermedecampo did you find some time to test it? Are we good to go?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @guilhermedecampo can we merge it?

Copy link
Contributor Author

@guilhermedecampo guilhermedecampo Dec 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow so sorry for all this time!

So I tested with both ListView and ScrollView components.

Check out the gifs below..
OBS: Take in consideration that I just changed NavigationBar and that there is a NavigationHeader this why the extra space on top.

Not working - not using inline styleName

navigationbar-

Working - using inline styleName + ListView

navigationbar-working

Working - using inline styleName + ScrollView

navigationbar-working-scrollview

@SoHotSoup
Copy link
Contributor

And thank you for submitting the PR!

@SoHotSoup SoHotSoup merged commit acb7bcb into shoutem:develop Dec 30, 2016
@SoHotSoup
Copy link
Contributor

@guilhermedecampo Thank you man!

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

Successfully merging this pull request may close these issues.

2 participants