Skip to content
Permalink
Browse files

Fix re-render case on SwipeableRow

Reviewed By: fred2028

Differential Revision: D6704625

fbshipit-source-id: 0305194a90f56d6fe5d37ebdddc5f7286c720378
  • Loading branch information...
André Costa authored and facebook-github-bot committed Jan 11, 2018
1 parent f363dfe commit a580a44b0d51ca7f33a4394b0a22d1c7d2234190
Showing with 0 additions and 9 deletions.
  1. +0 −9 Libraries/Experimental/SwipeableRow/SwipeableRow.js
@@ -159,15 +159,6 @@ const SwipeableRow = createReactClass({
}
},

shouldComponentUpdate(nextProps: Object, nextState: Object): boolean {
if (this.props.shouldBounceOnMount && !nextProps.shouldBounceOnMount) {
// No need to rerender if SwipeableListView is disabling the bounce flag
return false;
}

return true;
},

render(): React.Element<any> {
// The view hidden behind the main view
let slideOutView;

0 comments on commit a580a44

Please sign in to comment.
You can’t perform that action at this time.