A Swag Toggle for React Native and Expo Web
yarn add react-native-swag-toggle
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}
/>
);
};
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT