don't use contentVisibility on Firefox (#4164)

This commit is contained in:
Hailey 2024-05-22 06:07:07 -07:00 committed by GitHub
parent 4b0e118844
commit 6522ee9bbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -504,6 +504,7 @@ export const List = memo(React.forwardRef(ListImpl)) as <ItemT>(
// https://stackoverflow.com/questions/7944460/detect-safari-browser
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)
const isFirefox = /firefox|fxios/i.test(navigator.userAgent)
const styles = StyleSheet.create({
sideBorders: {
@ -518,7 +519,7 @@ const styles = StyleSheet.create({
},
row: {
// @ts-ignore web only
contentVisibility: isSafari ? '' : 'auto', // Safari support for this is buggy.
contentVisibility: isSafari || isFirefox ? '' : 'auto', // Safari support for this is buggy.
},
minHeightViewport: {
// @ts-ignore web only