Skip to content

Commit

Permalink
Merge pull request xinthink#175 from Froelund/patch-2
Browse files Browse the repository at this point in the history
Fixed issue with buttons missing testID
  • Loading branch information
xinthink authored Jun 10, 2016
2 parents c13569f + 758b86d commit c06e510
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Platform,
processColor,
} from 'react-native';

import { PropTypes } from 'react';
import * as R from 'ramda';

// Add some is-Type methods:
Expand Down Expand Up @@ -60,7 +60,10 @@ function extractProps(view, propTypes) {
// Extract Touchable props from the given component instance.
// - {`object`} `view` the component instance
function extractTouchableProps(view) {
return extractProps(view, TouchableWithoutFeedback.propTypes);
return extractProps(view, {
...TouchableWithoutFeedback.propTypes,
testID: PropTypes.string
});
}


Expand Down

0 comments on commit c06e510

Please sign in to comment.