quick actions resize when campaign card resizes
Reviewed By: zjj010104 Differential Revision: D3427226 fbshipit-source-id: da8f3a8e399be45afef7e6ba10cb16c7c025c078
This commit is contained in:
parent
23027cd730
commit
88f08ec99a
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue