1.0.0 • Published 5 years ago
@siliconjungles/react-native-simple-toggle-button v1.0.0
React Native Simple Toggle Button
Adapted from https://github.com/ashishpandey001/react-native-flip-toggle-button
Usage
yarn add react-native-simple-toggle-button
ornpm 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 })}
/>
1.0.0
5 years ago