mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-03 10:46:19 +00:00
Partially revert d841db2337
The modification to VirtualizedList is not required now that ScrollView wraps sticky header items in a View.
This commit is contained in:
@@ -1561,8 +1561,7 @@ class CellRenderer extends React.Component<
|
|||||||
getItemLayout?: ?Function,
|
getItemLayout?: ?Function,
|
||||||
renderItem: renderItemType,
|
renderItem: renderItemType,
|
||||||
},
|
},
|
||||||
prevCellKey: ?string,
|
prevCellKey: ?string
|
||||||
style: ?DangerouslyImpreciseStyleProp,
|
|
||||||
},
|
},
|
||||||
$FlowFixMeState,
|
$FlowFixMeState,
|
||||||
> {
|
> {
|
||||||
@@ -1631,7 +1630,6 @@ class CellRenderer extends React.Component<
|
|||||||
index,
|
index,
|
||||||
inversionStyle,
|
inversionStyle,
|
||||||
parentProps,
|
parentProps,
|
||||||
style,
|
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const {renderItem, getItemLayout} = parentProps;
|
const {renderItem, getItemLayout} = parentProps;
|
||||||
invariant(renderItem, 'no renderItem!');
|
invariant(renderItem, 'no renderItem!');
|
||||||
@@ -1651,9 +1649,9 @@ class CellRenderer extends React.Component<
|
|||||||
);
|
);
|
||||||
const cellStyle = inversionStyle
|
const cellStyle = inversionStyle
|
||||||
? horizontal
|
? horizontal
|
||||||
? [styles.rowReverse, inversionStyle, style]
|
? [styles.rowReverse, inversionStyle]
|
||||||
: [styles.columnReverse, inversionStyle, style]
|
: [styles.columnReverse, inversionStyle]
|
||||||
: horizontal ? [styles.row, inversionStyle, style] : [inversionStyle, style];
|
: horizontal ? [styles.row, inversionStyle] : inversionStyle;
|
||||||
if (!CellRendererComponent) {
|
if (!CellRendererComponent) {
|
||||||
return (
|
return (
|
||||||
<View style={cellStyle} onLayout={onLayout}>
|
<View style={cellStyle} onLayout={onLayout}>
|
||||||
|
|||||||
Reference in New Issue
Block a user