diff --git a/src/components/RadioButton.js b/src/components/RadioButton.js
index 01d12138d998..1111acc591be 100644
--- a/src/components/RadioButton.js
+++ b/src/components/RadioButton.js
@@ -1,9 +1,10 @@
import React from 'react';
-import {View, Pressable} from 'react-native';
+import {View} from 'react-native';
import PropTypes from 'prop-types';
import styles from '../styles/styles';
import Icon from './Icon';
import * as Expensicons from './Icon/Expensicons';
+import PressableWithFeedback from './Pressable/PressableWithFeedback';
const propTypes = {
/** Whether radioButton is checked */
@@ -12,6 +13,9 @@ const propTypes = {
/** A function that is called when the box/label is pressed */
onPress: PropTypes.func.isRequired,
+ /** Specifies the accessibility label for the radio button */
+ accessibilityLabel: PropTypes.string.isRequired,
+
/** Should the input be styled for errors */
hasError: PropTypes.bool,
@@ -25,9 +29,13 @@ const defaultProps = {
};
const RadioButton = (props) => (
-
(
width={14}
/>
-
+
);
RadioButton.propTypes = propTypes;
diff --git a/src/components/RadioButtonWithLabel.js b/src/components/RadioButtonWithLabel.js
index 776235f90cfe..7dbcb5676ce9 100644
--- a/src/components/RadioButtonWithLabel.js
+++ b/src/components/RadioButtonWithLabel.js
@@ -55,7 +55,7 @@ const RadioButtonWithLabel = (props) => {
- {_.map(this.props.items, (item) => (
+ {_.map(this.props.items, (item, index) => (
{