1.0.0 • Published 1 year ago

@snskar125/rn-switch v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

@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

PropType
valueBoolean
onPressFunction
disabledBoolean
animateBoolean
sizeNumber
activeSwitchColorString
inActiveSwitchColorString
activeTrackColorString
inActiveTrackColorString
1.0.0

1 year ago