Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/Row.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class Row extends Component {
// Returns whether this component should block native components from becoming the JS
// responder. Returns true by default. Is currently only supported on android.
// NOTE: Returning false here allows us to scroll unless it's a long press on a row.
return false;
return true;
},

onPanResponderGrant: (e, gestureState) => {
Expand Down Expand Up @@ -172,14 +172,13 @@ export default class Row extends Component {

return (
<Animated.View
{...this._panResponder.panHandlers}
style={rowStyle}
onLayout={this._onLayout}>
{this.props.manuallyActivateRows && children
? cloneElement(children, {
toggleRowActive: this._toggleActive,
{children &&
cloneElement(children, {
toggleRowActive: this.props.manuallyActivateRows ? this._toggleActive: undefined,
panHandlers: this._panResponder.panHandlers
})
: children
}
</Animated.View>
);
Expand Down