Provides the behavior and accessibility implementation for a switch component. A switch is similar to a checkbox, but represents on/off values as opposed to selection.
React Native has a Native Switch component. You may only need this hook If you're building a custom Switch.
- Props for the switch.
- State for the switch, as returned by useToggleState.
- Ref of input element or Pressable/Touchable