react-native-swag-toggle
v0.2.1
Published
Swag Toggle
Downloads
3
Readme
react-native-swag-toggle
A Swag Toggle for React Native and Expo Web
Installation
yarn add react-native-swag-toggle
Usage
import SwagToggle from 'react-native-swag-toggle';
const Component = () => {
const [value, setValue] = React.useState(false);
return (
<SwagToggle
value={value}
onValueChange={setValue}
leftText="L"
rightText="R"
style={styles.toggle}
handleStyle={styles.handle}
activeTextStyle={styles.activeText}
inactiveTextStyle={styles.inactiveText}
/>
);
};
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT