Utilities
ToggleGroupUtils
: Utilities related to primitives with a toggle group.EmptyGestureResponderEvent
: Used for callingonPress
andonLongPress
without any arguments for accessibility purposes.
component. -->
A collection of utilities for core primitives.
Utilities
ToggleGroupUtils
: Utilities related to primitives with a toggle group.EmptyGestureResponderEvent
: Used for calling onPress
and onLongPress
without any arguments for accessibility purposes.Install the component via your command line.
Copy/paste the following code to ~/components/primitives/utils.tsx
getIsSelected
: Returns true if the item is selected.getNewSingleValue
: Returns the new value for a single toggle group.getNewMultipleValue
: Returns the new value for a multiple toggle group.