Button Components
Radio Button
React Native Reanimated Radio button component with label and description support
Import
Props
Whether the radio button is selected.
Function to call when the radio button is pressed.
The main label text for the radio button.
Optional value text to display below the label.
Optional description text to display below the label/value.
Custom color for the radio button and selection state.
Optional icon component to display on the right side.
Custom height for the radio button container.
Accessibility label for screen readers.
Additional styles for the container.
Custom styles for the label text.
Custom styles for the value text.
Custom styles for the description text.
Additional Props
Prop | Type | Required | Default | Description |
---|---|---|---|---|
accessibilityLabel | string | No | - | Accessibility label for screen readers |
style | StyleProp<ViewStyle> | No | - | Additional styles for the container |
labelStyle | StyleProp<TextStyle> | No | - | Custom styles for the label text |
valueStyle | StyleProp<TextStyle> | No | - | Custom styles for the value text |
descriptionStyle | StyleProp<TextStyle> | No | - | Custom styles for the description text |
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
Was this page helpful?