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
1 changed files with 5 additions and 6 deletions

View File

@ -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,
});
}
},
_handleMoveShouldSetPanResponderCapture(