1.0.3 • Published 3 years ago

rn-icon-button v1.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

rn-icon-button

A customizable button component allowing you to create visually appealing buttons, utilising images, text or a combination of both.

Setup

npm install rn-icon-button

Usage

import { CustomButton } from 'rn-icon-button';

<CustomButton buttonStyles={styles.buttonStyle} onPress={onPress} title='LOGIN' buttonTextStyles={styles.buttonText} icon={require(PATH_TO_ICON)} iconSize={25} />

Properties

PropTypedefaultRequiredNote
titlestringNAOptionaltitle of the dialog
onPressfunctionNAOptionalTo perform task on press of the button
buttonTextStylesobjectNAOptionalStyles for button title text.See example
buttonStyleobjectNAOptionalStyles for button.See example
iconimageNAOptionalUse image to your buttons with or without text(button titles)
iconSizenumberNAOptionaluse this to make the icon fit with your buttons

Screenshot

ScreenShot