1.0.5 • Published 3 years ago

react-native-cn-buttonselect v1.0.5

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

CruzNadin Multi Select

⚡ Npm Commands

Talk to us about more commands if you need

visitors

Install

npm i react-native-cn-buttonselect

or

yarn add react-native-cn-buttonselect

android ios

Usage

import SelectBtn from "react-native-cn-buttonselect";

  render(){
    return (
       <SelectBtn 
            data={{title: "Select 1", subtitle: "Select 1 subtitle"}} 
            selectedBtn={(e) => console.log(e)} 
            onPressBtn={() => alert("Click")}
            animationTypes={['rotate']}
            initial={1}
            icon={
                <Icon
                name="check-circle"
                size={25}
                color="#2c9dd1"
                />
            }
        />
    )
  }
}

Properties

PropDescriptionDefault
dataradio buttons label array, you can use any data in object, label is necessary for showing in radio button[]
selectedBtncallback when radio button clicked-
onPressBtncallback when box button clicked-
iconyou can use any icon for button, see the example-
boxbox of for itemstrue
initialThis is used when this component is enabled use only 1.0
animationTypesthe animations when click on item, Valid values: 'zoomIn', 'pulse', 'shake', 'rotate', you can use one or more of this value for exaple: 'pulse' or 'pulse', 'rotate'[]
durationFor how long the animation will run (milliseconds)500
stylestyle for all RadioButtonRN{}
boxStylestyle for box{}
textStylestyle for label text{}
circleSizecircle size for unselected items and whitout icon selected size18
activeColorcolor of active button and box border'#03a9f4'
deactiveColorcolor of deactive button'#e2e2e2'
boxActiveBgColorbackground color of active item, when box is true'#e1f5fe33'
boxDeactiveBgColorbackground color of deactive items, when box is true'#fff'
textColorlabel color'#383838'

📫 Contact Us


⭐️ From Tulpar Yazılım