[React Native] Update core modules for React 0.13

This commit is contained in:
Ben Alpert
2015-03-06 16:29:59 -08:00
parent 582c05f4a0
commit b335f88efd
12 changed files with 214 additions and 152 deletions

View File

@@ -65,7 +65,7 @@ var TouchableWithoutFeedback = React.createClass({
render: function() {
// Note(vjeux): use cloneWithProps once React has been upgraded
var child = onlyChild(this.props.children);
Object.assign(child.props, {
return React.cloneElement(child, {
accessible: true,
testID: this.props.testID,
onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder,
@@ -75,7 +75,6 @@ var TouchableWithoutFeedback = React.createClass({
onResponderRelease: this.touchableHandleResponderRelease,
onResponderTerminate: this.touchableHandleResponderTerminate
});
return child;
}
});