Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi committed Nov 21, 2024
1 parent 27cdb8c commit 0753449
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/virtualized-lists/Lists/VirtualizedListCellRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type {
import {VirtualizedListCellContextProvider} from './VirtualizedListContext.js';
import invariant from 'invariant';
import * as React from 'react';
import {Platform, StyleSheet, View,} from 'react-native'; // [macOS]
import {Platform, StyleSheet, View} from 'react-native'; // [macOS]

export type Props<ItemT> = {
CellRendererComponent?: ?React.ComponentType<CellRendererProps<ItemT>>,
Expand Down Expand Up @@ -217,8 +217,8 @@ export default class CellRenderer<ItemT> extends React.PureComponent<
? [styles.rowReverse, inversionStyle]
: [styles.columnReverse, inversionStyle]
: horizontal
? [styles.row, inversionStyle]
: inversionStyle;
? [styles.row, inversionStyle]
: inversionStyle;
let result = !CellRendererComponent ? ( // [macOS]
<View
style={cellStyle}
Expand All @@ -230,7 +230,7 @@ export default class CellRenderer<ItemT> extends React.PureComponent<
) : (
<CellRendererComponent
cellKey={cellKey}
index={index}
index={index}
item={item}
style={cellStyle}
onFocusCapture={this._onCellFocusCapture}
Expand All @@ -240,7 +240,8 @@ export default class CellRenderer<ItemT> extends React.PureComponent<
</CellRendererComponent>
);

if (Platform.OS === 'macos') { // [macOS
if (Platform.OS === 'macos') {
// [macOS
result = React.cloneElement(result, {collapsable: false});
} // macOS]

Expand Down

0 comments on commit 0753449

Please sign in to comment.