Fix re-render case on SwipeableRow
Reviewed By: fred2028 Differential Revision: D6704625 fbshipit-source-id: 0305194a90f56d6fe5d37ebdddc5f7286c720378
This commit is contained in:
parent
f363dfe766
commit
a580a44b0d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue