From 88f08ec99aa853f260dca72148b56178d8c7f493 Mon Sep 17 00:00:00 2001 From: Fred Liu Date: Mon, 13 Jun 2016 16:57:11 -0700 Subject: [PATCH] quick actions resize when campaign card resizes Reviewed By: zjj010104 Differential Revision: D3427226 fbshipit-source-id: da8f3a8e399be45afef7e6ba10cb16c7c025c078 --- Libraries/Experimental/SwipeableRow/SwipeableRow.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Libraries/Experimental/SwipeableRow/SwipeableRow.js b/Libraries/Experimental/SwipeableRow/SwipeableRow.js index c1cb230f59c..c4e0f84d6a6 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableRow.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableRow.js @@ -78,6 +78,7 @@ const SwipeableRow = React.createClass({ mixins: [TimerMixin], propTypes: { + children: PropTypes.any, isOpen: PropTypes.bool, maxSwipeDistance: PropTypes.number.isRequired, onOpen: PropTypes.func.isRequired, @@ -206,12 +207,10 @@ const SwipeableRow = React.createClass({ }, _onSwipeableViewLayout(event: Object): void { - if (!this.state.isSwipeableViewRendered) { - this.setState({ - isSwipeableViewRendered: true, - rowHeight: event.nativeEvent.layout.height, - }); - } + this.setState({ + isSwipeableViewRendered: true, + rowHeight: event.nativeEvent.layout.height, + }); }, _handleMoveShouldSetPanResponderCapture(