mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 19:48:56 +08:00
Fix test id test case
Differential Revision: D2631505 fb-gh-sync-id: a7a21f114e521ca4ffff9fe9f8408cda70ad5ff3
This commit is contained in:
committed by
facebook-github-bot-5
parent
cb0d510955
commit
86c1375c1a
@@ -21,7 +21,6 @@ var Touchable = require('Touchable');
|
||||
var TouchableWithoutFeedback = require('TouchableWithoutFeedback');
|
||||
var View = require('View');
|
||||
|
||||
var cloneWithProps = require('cloneWithProps');
|
||||
var ensureComponentIsNative = require('ensureComponentIsNative');
|
||||
var ensurePositiveDelayProps = require('ensurePositiveDelayProps');
|
||||
var keyOf = require('keyOf');
|
||||
@@ -224,7 +223,7 @@ var TouchableHighlight = React.createClass({
|
||||
onResponderRelease={this.touchableHandleResponderRelease}
|
||||
onResponderTerminate={this.touchableHandleResponderTerminate}
|
||||
testID={this.props.testID}>
|
||||
{cloneWithProps(
|
||||
{React.cloneElement(
|
||||
onlyChild(this.props.children),
|
||||
{
|
||||
ref: CHILD_REF,
|
||||
|
||||
Reference in New Issue
Block a user