0.0.1 • Published 7 years ago

react-native-toolbar-component v0.0.1

Weekly downloads
21
License
MIT
Repository
github
Last release
7 years ago

React Native ToolbarComponent

Pull request are welcomed. Please follow the Airbnb style guide Airbnb JavaScript

Try it with Exponent

Preview

Installation

yarn

yarn add react-native-toolbar-component

npm

npm install --save react-native-toolbar-component

Basic Usage

import { Text } from 'react-native';
import ToolbarComponent from 'react-native-toolbar-component';
<ToolbarComponent
  leftItem={{
    title: 'Left',
    layout: 'title',
    onPress: () => {
      console.log('pressed');
    },
  }}
  righttem={{
    title: 'Right',
    layout: 'title',
    onPress: () => {
      console.log('pressed');
    },
  }}
>
  <Text>
    Title
  </Text>
</ToolbarComponent>