fix: Add vendor prefix for web blur. (#678)

zio/stable
Jacques Favreau 2023-05-16 16:39:15 -07:00 committed by GitHub
parent b7f081d6e4
commit 404b2f043c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ export const BlurView = ({
...props ...props
}: React.PropsWithChildren<BlurViewProps>) => { }: React.PropsWithChildren<BlurViewProps>) => {
// @ts-ignore using an RNW-specific attribute here -prf // @ts-ignore using an RNW-specific attribute here -prf
style = addStyle(style, {backdropFilter: `blur(${blurAmount || 10}px`}) let blur = `blur(${blurAmount || 10}px`
style = addStyle(style, {backdropFilter: blur, WebkitBackdropFilter: blur})
if (blurType === 'dark') { if (blurType === 'dark') {
style = addStyle(style, styles.dark) style = addStyle(style, styles.dark)
} else { } else {