Skip to content

Commit

Permalink
Partially revert d841db2
Browse files Browse the repository at this point in the history
The modification to VirtualizedList is not required now that ScrollView wraps
sticky header items in a View.
  • Loading branch information
necolas committed Nov 15, 2018
1 parent 145f804 commit 513b5de
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1561,8 +1561,7 @@ class CellRenderer extends React.Component<
getItemLayout?: ?Function,
renderItem: renderItemType,
},
prevCellKey: ?string,
style: ?DangerouslyImpreciseStyleProp,
prevCellKey: ?string
},
$FlowFixMeState,
> {
Expand Down Expand Up @@ -1631,7 +1630,6 @@ class CellRenderer extends React.Component<
index,
inversionStyle,
parentProps,
style,
} = this.props;
const {renderItem, getItemLayout} = parentProps;
invariant(renderItem, 'no renderItem!');
Expand All @@ -1651,9 +1649,9 @@ class CellRenderer extends React.Component<
);
const cellStyle = inversionStyle
? horizontal
? [styles.rowReverse, inversionStyle, style]
: [styles.columnReverse, inversionStyle, style]
: horizontal ? [styles.row, inversionStyle, style] : [inversionStyle, style];
? [styles.rowReverse, inversionStyle]
: [styles.columnReverse, inversionStyle]
: horizontal ? [styles.row, inversionStyle] : inversionStyle;
if (!CellRendererComponent) {
return (
<View style={cellStyle} onLayout={onLayout}>
Expand Down

0 comments on commit 513b5de

Please sign in to comment.