npm i loadingswitch
import { LoadSwitch } from 'loadingswitch';
<LoadSwitch onPress={() => YourFunction()} status={true} />
Prop | Required | Type | Default | Return Type |
---|---|---|---|---|
status | Yes | Boolean | False | None |
onPress() | Yes | Method | None | Boolean |
toggleOnColor | No | String | White | None |
toggleOffColor | No | String | Blue | None |
switchOnColor | No | String | Blue | None |
switchOffColor | No | String | White | None |
switchBorderColor | No | String | Black | None |
shape | No | Box/Circle | Circle | None |
For major changes, please open an issue first to discuss what you would like to change.