Toolbar
component acts like toolbar in react-native. You can make menus by setting the actions array,and you can get which menu has been pressed by register onPress callback. width option is required.
Install
Make sure that you are in your React Native
project directory and run:
npm install react-native-toolbar-wrapper --save
Usage
Import Toolbar as a JavaScript module:
;
1.This is an example of how to use the component and some of the commonly used props that it supports:
<Toolbar width=width title="我的定制" navigator=thispropsnavigator actions= icon:ACTION_ADDvalue:''show:OPTION_SHOW value:'发布定制'show:OPTION_NEVER onPress={ console } > </Toolbar>