From 33290fb1e2c547c6b16774c916224a16a6da85a0 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sun, 1 Mar 2015 16:08:44 -0800 Subject: [PATCH] [ReactNative] Replace all the call sites of copyProperties by Object.assign --- Libraries/Components/Touchable/TouchableWithoutFeedback.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Components/Touchable/TouchableWithoutFeedback.js b/Libraries/Components/Touchable/TouchableWithoutFeedback.js index 74fbf43a1..ebabdd9cc 100644 --- a/Libraries/Components/Touchable/TouchableWithoutFeedback.js +++ b/Libraries/Components/Touchable/TouchableWithoutFeedback.js @@ -9,7 +9,6 @@ var React = require('React'); var Touchable = require('Touchable'); var TouchableFeedbackPropType = require('TouchableFeedbackPropType'); -var copyProperties = require('copyProperties'); var onlyChild = require('onlyChild'); /** @@ -66,7 +65,7 @@ var TouchableWithoutFeedback = React.createClass({ render: function() { // Note(vjeux): use cloneWithProps once React has been upgraded var child = onlyChild(this.props.children); - copyProperties(child.props, { + Object.assign(child.props, { accessible: true, testID: this.props.testID, onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder,