mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
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],
|
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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user