Navigation Bar - React Native

I am creating a mobile application with React Native and I decided to use a navigation bar that comes from the site 'https://github.com/beefe/react-native-navigation-bar', but I do not know how to use it in my code.

I would like you to send me examples of the navigation bar of the site 'https://github.com/beefe/react-native-navigation-bar'.

I think you should try to read carefully before asking.

This site is clearly show how to use this component. Just 2 steps :

1 : Install package.

    npm install react-native-navigation-bar --save

2 : Import and use. Change attribute the way you like.

import NavigationBar from 'react-native-navigation-bar';

export default class Example extends Component {
  render(){
    return(
      <View>
        <NavigationBar 
          title={'Main title'}
          height={50}
          leftButtonTitle={'back'}
          rightButtonTitle={'forward'}
        />
        <Text>ABC</Text>
      </View>
    )
  }
}

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

flutter websocket connection issue