Reverted commit D3735237
Summary: Currently, text inputs do not scroll when inside other components like scroll views. This fixes it by blocking any parent native component from taking the responder when the text input is focused and is being scrolled. This fixes the previous implementation, where the scroll view was not able to scroll on top of other text inputs, even though they were not focused. This makes the component similar to it's ios counterpart. Reviewed By: foghina Differential Revision: D3735237 fbshipit-source-id: 724f94a6e7332d03261a80f63ffa60d0e5846932
This commit is contained in:
parent
96d27ca9f1
commit
9840ced929
|
@ -691,7 +691,6 @@ const TextInput = React.createClass({
|
|||
<TouchableWithoutFeedback
|
||||
onLayout={this.props.onLayout}
|
||||
onPress={this._onPress}
|
||||
shouldBlockResponder={this.isFocused}
|
||||
accessible={this.props.accessible}
|
||||
accessibilityLabel={this.props.accessibilityLabel}
|
||||
accessibilityComponentType={this.props.accessibilityComponentType}
|
||||
|
|
|
@ -396,7 +396,6 @@ var TouchableMixin = {
|
|||
this._handleLongDelay.bind(this, e),
|
||||
longDelayMS + delayMS
|
||||
);
|
||||
return this.props.shouldBlockResponder && this.props.shouldBlockResponder();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue