[ReactNative] Replace all the call sites of copyProperties by Object.assign
This commit is contained in:
parent
878bc9d491
commit
33290fb1e2
|
@ -9,7 +9,6 @@ var React = require('React');
|
||||||
var Touchable = require('Touchable');
|
var Touchable = require('Touchable');
|
||||||
var TouchableFeedbackPropType = require('TouchableFeedbackPropType');
|
var TouchableFeedbackPropType = require('TouchableFeedbackPropType');
|
||||||
|
|
||||||
var copyProperties = require('copyProperties');
|
|
||||||
var onlyChild = require('onlyChild');
|
var onlyChild = require('onlyChild');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -66,7 +65,7 @@ var TouchableWithoutFeedback = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
// Note(vjeux): use cloneWithProps once React has been upgraded
|
// Note(vjeux): use cloneWithProps once React has been upgraded
|
||||||
var child = onlyChild(this.props.children);
|
var child = onlyChild(this.props.children);
|
||||||
copyProperties(child.props, {
|
Object.assign(child.props, {
|
||||||
accessible: true,
|
accessible: true,
|
||||||
testID: this.props.testID,
|
testID: this.props.testID,
|
||||||
onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder,
|
onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder,
|
||||||
|
|
Loading…
Reference in New Issue