fix: Add vendor prefix for web blur. (#678)
parent
b7f081d6e4
commit
404b2f043c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue