0.1.1 • Published 3 years ago

react-native-toggle-buttons v0.1.1

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

react-native-toggle-buttons

react-native-toggle-buttons

Installation

npm install react-native-toggle-buttons

Usage

import ToggleButton from 'react-native-toggle-buttons';

// ...

<ToggleButton.Group row onValueChange={}>
  <ToggleButton title={'Button1'} value={1} />
  <ToggleButton title={'Button2'} value={2} />
  <ToggleButton title={'Button3'} value={3} />
</ToggleButton.Group>;

Available ToggleButton.Group Props

namedefaultdescription
selectednullselected value
space0space between buttons
buttonStyle{}button style
color'gray'buttons color
colorSelected'blue'selected button color
textColornullbutton text color
onValueChange(value) => funcbutton selection event

Available ToggleButton Props

namedefaultdescription
titlenullbutton title
valuenullbutton value

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT