react-native-toggle-buttons
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

name default description
selected null selected value
space 0 space between buttons
buttonStyle {} button style
color 'gray' buttons color
colorSelected 'blue' selected button color
textColor null button text color
onValueChange (value) => func button selection event

Available ToggleButton Props

name default description
title null button title
value null button value

Contributing

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

License

MIT

Package Sidebar

Install

npm i react-native-toggle-buttons

Weekly Downloads

23

Version

0.1.1

License

MIT

Unpacked Size

36.6 kB

Total Files

27

Last publish

Collaborators

  • hnajih