Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@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 })}
/>

Install

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

DownloadsWeekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

8.17 kB

Total Files

5

Last publish

Collaborators

  • avatar