mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 12:45:37 +08:00
[React Native] Update core modules for React 0.13
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user