Skip to content

Commit

Permalink
Disable accessibility for modal TouchableWithoutFeedback (#73)
Browse files Browse the repository at this point in the history
Disable accessibility for the TouchableWithoutFeeback backdrop (which dismisses the modal) so automation and users with accessibility features enabled can interact with the option list.
  • Loading branch information
jhellman authored and peacechen committed Jun 26, 2018
1 parent 00f55b3 commit 9569611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default class ModalSelector extends React.Component {
const closeOverlay = this.props.backdropPressToClose;

return (
<TouchableWithoutFeedback key={'modalSelector' + (componentIndex++)} onPress={() => {
<TouchableWithoutFeedback key={'modalSelector' + (componentIndex++)} accessible={false} onPress={() => {
closeOverlay && this.close();
}}>
<View style={[styles.overlayStyle, this.props.overlayStyle]}>
Expand Down

0 comments on commit 9569611

Please sign in to comment.