Giter Site home page Giter Site logo

magic-coder / react-native-circle-button Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dwicao/react-native-circle-button

0.0 2.0 0.0 1.2 MB

A Customizable React Native Circle Button

Home Page: https://www.npmjs.com/package/react-native-circle-button

JavaScript 100.00%

react-native-circle-button's Introduction

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

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

License

MIT

react-native-circle-button's People

Contributors

dwicao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.