Fix <SwipeableRow /> layout.
Summary: The back view in <SwipeableRow /> should not be rendered unless the front view has been rendered and its layout has been measured. Reviewed By: fred2028 Differential Revision: D4509584 fbshipit-source-id: 72ad0c8e7dec258ae3a1ba88c0adeb9ad0bfdf6d
This commit is contained in:
parent
bc74dd1e14
commit
f2ab27e321
|
@ -24,8 +24,8 @@
|
|||
'use strict';
|
||||
|
||||
const Animated = require('Animated');
|
||||
const PanResponder = require('PanResponder');
|
||||
const I18nManager = require('I18nManager');
|
||||
const PanResponder = require('PanResponder');
|
||||
const React = require('React');
|
||||
const StyleSheet = require('StyleSheet');
|
||||
const TimerMixin = require('react-timer-mixin');
|
||||
|
@ -174,7 +174,7 @@ const SwipeableRow = React.createClass({
|
|||
render(): React.Element<any> {
|
||||
// The view hidden behind the main view
|
||||
let slideOutView;
|
||||
if (this.state.isSwipeableViewRendered) {
|
||||
if (this.state.isSwipeableViewRendered && this.state.rowHeight) {
|
||||
slideOutView = (
|
||||
<View style={[
|
||||
styles.slideOutContainer,
|
||||
|
|
Loading…
Reference in New Issue