react-native-icon-button
A simple button component allowing you to create customisable and visually appealing buttons, utilising images, text or a combination of both depending on the desired result.
Installation
To install simply enter the following...
$ npm install react-native-icon-button
Then require it in your project wherever you need it...
var Button = ;
Properties
Prop | Type | Opt/Required | Default | Note |
---|---|---|---|---|
icon |
Image | Optional | N/A |
The image resource (must be required directly). |
iconSize |
Number | Optional | N/A |
Scales the icon / image to the specified size. |
text |
String | Optional | N/A |
The text that will be displayed on the button. |
onPress |
Function | Required | N/A |
A function that will be called when the accordion is pressed. |
underlayColor |
String | Optional | transparent |
The underlay color of the TouchableHighlight. |
style |
Object | Optional | (See Example) |
Custom button styling, colors, border radius etc... |
Example
var Button = ; var testing = React; var styles = StyleSheet;