react-native-swag-toggle
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

react-native-swag-toggle

A Swag Toggle for React Native and Expo Web

Screnshot

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

/react-native-swag-toggle/

    Package Sidebar

    Install

    npm i react-native-swag-toggle

    Weekly Downloads

    2

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    42.7 kB

    Total Files

    23

    Last publish

    Collaborators

    • leethree