Add content-visibility for rows
This commit is contained in:
@@ -169,7 +169,11 @@ let Row = function RowImpl<ItemT>({
|
||||
if (!renderItem) {
|
||||
return null
|
||||
}
|
||||
return renderItem({item, index, separators: null as any})
|
||||
return (
|
||||
<View style={styles.row}>
|
||||
{renderItem({item, index, separators: null as any})}
|
||||
</View>
|
||||
)
|
||||
}
|
||||
Row = React.memo(Row)
|
||||
|
||||
@@ -250,4 +254,8 @@ const styles = StyleSheet.create({
|
||||
marginLeft: 'auto',
|
||||
marginRight: 'auto',
|
||||
},
|
||||
row: {
|
||||
// @ts-ignore web
|
||||
contentVisibility: 'auto',
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user