quick actions resize when campaign card resizes

Reviewed By: zjj010104

Differential Revision: D3427226

fbshipit-source-id: da8f3a8e399be45afef7e6ba10cb16c7c025c078
This commit is contained in:
Fred Liu 2016-06-13 16:57:11 -07:00 committed by Facebook Github Bot 9
parent 23027cd730
commit 88f08ec99a

View File

@ -78,6 +78,7 @@ const SwipeableRow = React.createClass({
mixins: [TimerMixin], mixins: [TimerMixin],
propTypes: { propTypes: {
children: PropTypes.any,
isOpen: PropTypes.bool, isOpen: PropTypes.bool,
maxSwipeDistance: PropTypes.number.isRequired, maxSwipeDistance: PropTypes.number.isRequired,
onOpen: PropTypes.func.isRequired, onOpen: PropTypes.func.isRequired,
@ -206,12 +207,10 @@ const SwipeableRow = React.createClass({
}, },
_onSwipeableViewLayout(event: Object): void { _onSwipeableViewLayout(event: Object): void {
if (!this.state.isSwipeableViewRendered) { this.setState({
this.setState({ isSwipeableViewRendered: true,
isSwipeableViewRendered: true, rowHeight: event.nativeEvent.layout.height,
rowHeight: event.nativeEvent.layout.height, });
});
}
}, },
_handleMoveShouldSetPanResponderCapture( _handleMoveShouldSetPanResponderCapture(