A Customizable React Native Circle Button, works on both Android and iOS.
UPDATE v1.0.6: Support transparent background
note: It's lags due to gif recorder app, it actually works more smooth
npm install --save react-native-circle-button
importReact,{Component}from'react';import{View}from'react-native';importCircleButtonfrom'react-native-circle-button';classMyExampleextendsComponent{render(){return(<Viewstyle={{flex: 1}}><CircleButtonsize={45}/></View>);}}exportdefaultMyExample;| Property | Type | Default | Description |
|---|---|---|---|
| size | number | 40 | Setting overall size |
| primaryColor | string | '#41727E' | Color on inner button |
| secondaryColor | string | '#459186' | Color on outer button |
| onPressButtonTop | function | () => {} | Event onPress Button Top |
| onPressButtonRight | function | () => {} | Event onPress Button Right |
| onPressButtonBottom | function | () => {} | Event onPress Button Bottom |
| onPressButtonLeft | function | () => {} | Event onPress Button Left |
| iconButtonCenter | enum | Source path to icon image on center | |
| iconButtonTop | enum | Source path to icon image on top | |
| iconButtonRight | enum | Source path to icon image on right | |
| iconButtonBottom | enum | Source path to icon image on bottom | |
| iconButtonLeft | enum | Source path to icon image on left |
MIT
