Skip to content

Commit a580a44

Browse files
André Costafacebook-github-bot
André Costa
authored andcommitted
Fix re-render case on SwipeableRow
Reviewed By: fred2028 Differential Revision: D6704625 fbshipit-source-id: 0305194a90f56d6fe5d37ebdddc5f7286c720378
1 parent f363dfe commit a580a44

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Libraries/Experimental/SwipeableRow/SwipeableRow.js

-9
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,6 @@ const SwipeableRow = createReactClass({
159159
}
160160
},
161161

162-
shouldComponentUpdate(nextProps: Object, nextState: Object): boolean {
163-
if (this.props.shouldBounceOnMount && !nextProps.shouldBounceOnMount) {
164-
// No need to rerender if SwipeableListView is disabling the bounce flag
165-
return false;
166-
}
167-
168-
return true;
169-
},
170-
171162
render(): React.Element<any> {
172163
// The view hidden behind the main view
173164
let slideOutView;

0 commit comments

Comments
 (0)