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