
Description
react-native-simple-radio-button is an animated radio button component for React Native. Its RadioForm component takes a list of values and labels through the radio_props option, and calls the onPress callback when a button is tapped. The initial prop sets the selected index when the form first appears, and -1 leaves it empty. The updateIsActiveIndex method changes the selected button later, which helps when the initial value loads asynchronously. Colours are set with buttonColor and labelColor, the form can lay out horizontally with formHorizontal, and labels can be placed horizontally with labelHorizontal. Setting animation to false turns off the radio animation. Accessibility options include the accessible flag, accessibilityLabel and testID, which are applied to each input and label. A separate RadioButton component takes an isSelected prop, for building custom layouts. The README covers installation from the command line and has basic, advanced and pro examples and a demo.…
Highlights
- Animated radio buttons for React Native
- Form built from one array of values and labels
- Set the initial or updated selection
- Colours, horizontal layout and label placement
- Accessibility and testID props
Ratings & Reviews
No ratings yet
Be the first to rate react-native-simple-radio-button.
People also visit

react-native-radio-buttons-group
Simple and Best. An easy to use radio buttons for react native apps
React Native Bouncy Checkbox
Fully customizable animated bouncy checkbox for React Native
react-native-circular-progress
React Native component for creating animated, circular progress
react-native-simple-radio-button FAQ
What is react-native-simple-radio-button?
An animated radio button component for React Native.
How do I pass the options?
Through radio_props, an array of values and labels. Selection is handled with the onPress callback.
Can I change the selection after the form loads?
Yes. Call updateIsActiveIndex to change the selected button, which helps when the initial value loads asynchronously.
Can I turn the animation off?
Yes. Pass animation={false}.
Does it support accessibility?
Yes. The accessible, accessibilityLabel and testID props apply to each input and label.
What are the best react-native-simple-radio-button alternatives?
Popular alternatives to react-native-simple-radio-button include react-native-radio-buttons-group, @futurejj/react-native-checkbox and react-radio-group. See all react-native-simple-radio-button alternatives
















