react-native-toolbar-component
v0.0.1
Published
react native toolbar
Downloads
6
Readme
React Native ToolbarComponent
Pull request are welcomed. Please follow the Airbnb style guide Airbnb JavaScript
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>