Skip to content
5 changes: 5 additions & 0 deletions src/components/Pressable/PressableWithFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ const PressableWithFeedbackPropTypes = {
* @default variables.hoverDimValue
*/
hoverDimmingValue: propTypes.number,
/**
* Used to locate this view from native classes.
*/
nativeID: propTypes.string,
Comment thread
HezekielT marked this conversation as resolved.
};

const PressableWithFeedbackDefaultProps = {
..._.omit(GenericPressablePropTypes.defaultProps, omittedProps),
pressDimmingValue: variables.pressDimValue,
hoverDimmingValue: variables.hoverDimValue,
nativeID: '',
wrapperStyle: [],
};

Expand Down
1 change: 1 addition & 0 deletions src/pages/home/report/ReportActionItemMessageEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ class ReportActionItemMessageEdit extends React.Component {
{(hovered) => (
<PressableWithFeedback
onPress={this.deleteDraft}
nativeID={this.cancelButtonID}
style={styles.chatItemSubmitButton}
accessibilityRole="button"
accessibilityLabel={this.props.translate('common.close')}
Expand Down