Skip to content

Commit

Permalink
Fix re-render case on SwipeableRow
Browse files Browse the repository at this point in the history
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 a580a44
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Libraries/Experimental/SwipeableRow/SwipeableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a580a44

Please sign in to comment.