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
- Host: GitHub
- URL: https://github.com/meta-ben/react-native-bm-header-action
- Owner: Meta-Ben
- License: mit
- Created: 2020-03-18T19:29:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T22:44:21.000Z (almost 2 years ago)
- Last Synced: 2025-08-30T14:14:58.527Z (9 months ago)
- Topics: plugin, react-native
- Language: Java
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 :)