From 86c1375c1a9a08ea95b2e3fc70f0f32124e52d07 Mon Sep 17 00:00:00 2001 From: Andrei Coman Date: Mon, 9 Nov 2015 06:31:37 -0800 Subject: [PATCH] Fix test id test case Differential Revision: D2631505 fb-gh-sync-id: a7a21f114e521ca4ffff9fe9f8408cda70ad5ff3 --- Libraries/Components/Touchable/TouchableHighlight.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Components/Touchable/TouchableHighlight.js b/Libraries/Components/Touchable/TouchableHighlight.js index 62057fda0..16e3bd289 100644 --- a/Libraries/Components/Touchable/TouchableHighlight.js +++ b/Libraries/Components/Touchable/TouchableHighlight.js @@ -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,