About
This is a React-Native RadioButton component that you can freely modify its styles.
Instalation
To install just input the following command:
npm i react-native-customizable-radio-button
or
yarn add react-native-customizable-radio-button
Basic Usage
//...; const options = id: 1 // required text: 'Most High Pay' //required id: 2 text: 'Most Perfomance' ; { console; }; { return <RadioButton data=options //required onValueChange=thisonValueChange //required /> ; }
Advanced Usage
//...; const options = id: 1 // required text: 'Most High Pay' //required id: 2 text: 'Most Perfomance' ; { console; }; { return <RadioButton // defaultOption={id} // you may input the selected option as default. When not marked, first is always selected // formStyle = {{}} // add your styles to whole form container // containerStyle={{}} // add your styles to each item container // circleContainerStyle={{}} // add your styles to each outer circle // innerCircleStyle={{}} // add your styles to each inner circle // labelStyle={{}} // add your styles to each label // isContainerClickable={false} // default false, when true whole item container changes value data=options //required onValueChange=thisonValueChange //required /> ; }
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.