From db8226194d542925c78c0ed0b93e412aad861c76 Mon Sep 17 00:00:00 2001 From: Malte Peters Date: Tue, 24 Apr 2018 10:55:47 +0200 Subject: [PATCH] feat: add testID to TouchableOpacity --- Button.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Button.js b/Button.js index d0761b7..3cdb551 100644 --- a/Button.js +++ b/Button.js @@ -22,6 +22,7 @@ class Button extends Component { PropTypes.node, PropTypes.element ]), + testID: PropTypes.string, accessibilityLabel: PropTypes.string, activeOpacity: PropTypes.number, allowFontScaling: PropTypes.bool, @@ -91,6 +92,7 @@ class Button extends Component { } // Extract Touchable props let touchableProps = { + testID: this.props.testID, accessibilityLabel: this.props.accessibilityLabel, onPress: this.props.onPress, onPressIn: this.props.onPressIn,