@siliconjungles/react-native-simple-toggle-button

1.0.0 • Public • Published

React Native Simple Toggle Button

Adapted from https://github.com/ashishpandey001/react-native-flip-toggle-button

Usage

  • yarn add react-native-simple-toggle-button or npm install react-native-simple-toggle-button --save
<ToggleButtonComponent
  value={useQr}
  leftText="Left"
  rightText="Right"
  buttonWidth={250}
  buttonHeight={50}
  buttonRadius={50}
  sliderWidth={125}
  onToggle={(newState) => this.setState({ useQr: newState })}
/>

Package Sidebar

Install

npm i @siliconjungles/react-native-simple-toggle-button

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

8.17 kB

Total Files

5

Last publish

Collaborators

  • siliconavengers