From 43785fdb3b3ddeae046320bb6f9b5c3f31782914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kowalkowski?= Date: Wed, 11 Dec 2019 14:07:14 +0100 Subject: [PATCH] Update Button.js accessible prop for UI testing --- Button.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Button.js b/Button.js index 3cdb551..ef1fd38 100644 --- a/Button.js +++ b/Button.js @@ -23,6 +23,7 @@ class Button extends Component { PropTypes.element ]), testID: PropTypes.string, + accessible: PropTypes.bool, accessibilityLabel: PropTypes.string, activeOpacity: PropTypes.number, allowFontScaling: PropTypes.bool, @@ -93,6 +94,7 @@ class Button extends Component { // Extract Touchable props let touchableProps = { testID: this.props.testID, + accessible: this.props.accessible, accessibilityLabel: this.props.accessibilityLabel, onPress: this.props.onPress, onPressIn: this.props.onPressIn,