1.0.9 • Published 6 years ago

react-native-circle-button v1.0.9

Weekly downloads
9
License
MIT
Repository
github
Last release
6 years ago

react-native-circle-button

A Customizable React Native Circle Button, works on both Android and iOS.

demo

UPDATE v1.0.6: Support transparent background
note: It's lags due to gif recorder app, it actually works more smooth

Inspiration

Ux Concept by Nick Kumbari

Installation

  • npm install --save react-native-circle-button

Usage

import React, { Component } from 'react';
import { View } from 'react-native';
import CircleButton from 'react-native-circle-button';

class MyExample extends Component {
    render() {
        return (
            <View style={{ flex: 1 }}>
                <CircleButton size={45} />
            </View>
        );
    }
}

export default MyExample;

Props

PropertyTypeDefaultDescription
sizenumber40Setting overall size
primaryColorstring'#41727E'Color on inner button
secondaryColorstring'#459186'Color on outer button
onPressButtonTopfunction() => {}Event onPress Button Top
onPressButtonRightfunction() => {}Event onPress Button Right
onPressButtonBottomfunction() => {}Event onPress Button Bottom
onPressButtonLeftfunction() => {}Event onPress Button Left
iconButtonCenterenumSource path to icon image on center
iconButtonTopenumSource path to icon image on top
iconButtonRightenumSource path to icon image on right
iconButtonBottomenumSource path to icon image on bottom
iconButtonLeftenumSource path to icon image on left

License

MIT

1.0.9

6 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago