An open API service indexing awesome lists of open source software.

https://github.com/meta-ben/react-native-bm-header-action

2019 - Header module for React Native
https://github.com/meta-ben/react-native-bm-header-action

plugin react-native

Last synced: 26 days ago
JSON representation

2019 - Header module for React Native

Awesome Lists containing this project

README

          

:iphone: react-native-bm-header-action :iphone:







React native module to add a button icon (with text or not)
## Getting started

`$ npm install react-native-bm-header-action --save`

### Mostly automatic installation

`$ react-native link react-native-bm-header-action`

## How to use
Start by adding
```javascript
import BmHeaderAction from 'react-native-bm-header-action';
```

then use like this :
```javascript

```
## Properties
| Prop | Default | Type | Description | Optional |
| --- | --- | --- | --- | --- |
| style | `width: 100%` | `style object`| Change the default style of the base button | yes
| title | - | `string` | Add a title in the header | yes
| buttonStyle | - | `style object` | Change the default style of action button | yes
| buttonIconStyle | - | `style object` | Change the default style of the action icon | yes
| titleStyle | - | `style object` | Change the default style of the title | yes
| menuIcon | - | `icon like `require('../myicon.png')` or variable contain it`| Add the icon to the button | yes
| buttonAction | - | `function` | Add a callback function to the button | yes

Enjoy :)