Skip to content

Commit

Permalink
re-introduce cellStyle flexDirection row
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Jul 11, 2022
1 parent 98bea1b commit 6271850
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
3 changes: 2 additions & 1 deletion Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -2129,11 +2129,12 @@ class CellRenderer extends React.Component<
: ItemSeparatorComponent && (
<ItemSeparatorComponent {...this.state.separatorProps} />
);
const cellStyle = horizontal ? styles.row : null;
const result = !CellRendererComponent ? (
/* $FlowFixMe[incompatible-type-arg] (>=0.89.0 site=react_native_fb) *
This comment suppresses an error found when Flow v0.89 was deployed. *
To see the error, delete this comment and run Flow. */
<View onLayout={onLayout}>
<View style={cellStyle} onLayout={onLayout}>
{element}
{itemSeparator}
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,9 @@ exports[`VirtualizedList handles nested lists 1`] = `
<View
onLayout={[Function]}
style={
Array [
Object {
"flexDirection": "row",
},
null,
]
Object {
"flexDirection": "row",
}
}
>
<item
Expand All @@ -518,12 +515,9 @@ exports[`VirtualizedList handles nested lists 1`] = `
<View
onLayout={[Function]}
style={
Array [
Object {
"flexDirection": "row",
},
null,
]
Object {
"flexDirection": "row",
}
}
>
<item
Expand Down

0 comments on commit 6271850

Please sign in to comment.