Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 945 Bytes

README.md

File metadata and controls

45 lines (37 loc) · 945 Bytes

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>