Import
Props
boolean
required
Whether the radio button is selected.
() => void
required
Function to call when the radio button is pressed.
string
required
The main label text for the radio button.
string
Optional value text to display below the label.
string
Optional description text to display below the label/value.
string
default:"theme.primary"
Custom color for the radio button and selection state.
React.ReactNode
Optional icon component to display on the right side.
number
Custom height for the radio button container.
string
Accessibility label for screen readers.
StyleProp<ViewStyle>
Additional styles for the container.
StyleProp<TextStyle>
Custom styles for the label text.
StyleProp<TextStyle>
Custom styles for the value text.
StyleProp<TextStyle>
Custom styles for the description text.
Additional Props
Features
- Smooth selection animation using Reanimated
- Support for labels, values, and descriptions
- Custom icon support
- Theme-aware styling
- Accessibility support
- Customizable colors and styles
Additional Examples
Radio Group Example
Styled Example
Notes
- The component uses spring animations for smooth selection transitions
- Selection state is controlled externally through the selected prop
- The component automatically adapts to light/dark theme modes
- Custom colors will override theme colors when provided
- All text elements (label, value, description) are optional