@snskar125/rn-switch

1.0.0 • Public • Published

@snskar125/rn-switch

Switch Component for React Native

Usage

import Switch from "@snskar125/rn-switch";
import { useState } from "react";
export default function App() {
  const [value, setValue] = useState(false);
  return (
    <Switch
      value={value}
      onPress={() => {
        setValue(!value);
      }}
    />
  );
}

Props

Prop Type
value Boolean
onPress Function
disabled Boolean
animate Boolean
size Number
activeSwitchColor String
inActiveSwitchColor String
activeTrackColor String
inActiveTrackColor String

Package Sidebar

Install

npm i @snskar125/rn-switch

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

3.56 kB

Total Files

3

Last publish

Collaborators

  • snskar125