redbaron76 / navbar-native

a fully customizable navbar component for React-Native
90 stars 24 forks source link

Use with Navigator (react-native) - How to position NavBar on top of the screen? #19

Closed tfreitasleal closed 7 years ago

tfreitasleal commented 7 years ago

I couldn't find an example of Navbar and Navigator. On my App.js file (the app entry point) I have ` render() { return( <Navigator initialRoute={{name: ''}} renderScene={this._renderScene} navigationBar={

{this._leftButtonAction();} }} right={[{ icon: "md-search", onPress: () => {alert('Search!')}, }]} />
      }
    />
);

}

` but NavBar shows on the middle (vertically) of the screen. What am I doing wrong?

redbaron76 commented 7 years ago

Probably you have some flexbox related issues with your layout. Please follow examples provided in the README.md