1.0.0 • Published 5 years ago

@siliconjungles/react-native-simple-toggle-button v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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