Fix re-render case on SwipeableRow

Reviewed By: fred2028

Differential Revision: D6704625

fbshipit-source-id: 0305194a90f56d6fe5d37ebdddc5f7286c720378
This commit is contained in:
André Costa 2018-01-11 15:37:57 -08:00 committed by Facebook Github Bot
parent f363dfe766
commit a580a44b0d
1 changed files with 0 additions and 9 deletions

View File

@ -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;