From e929fb572d6a59ff599acea8cfb32839ddb00ffa Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 9 Mar 2017 18:09:27 -0800 Subject: [PATCH] [change] add 'testID' prop to 'Button' Close #386 --- src/components/Button/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Button/index.js b/src/components/Button/index.js index 9f8eaef9..460d5fd3 100644 --- a/src/components/Button/index.js +++ b/src/components/Button/index.js @@ -10,6 +10,7 @@ class Button extends Component { color: ColorPropType, disabled: PropTypes.bool, onPress: PropTypes.func.isRequired, + testID: PropTypes.string, title: PropTypes.string.isRequired }; @@ -19,13 +20,14 @@ class Button extends Component { color, disabled, onPress, + testID, title } = this.props; return ( {title}