fix: Add vendor prefix for web blur. (#678)
This commit is contained in:
parent
b7f081d6e4
commit
404b2f043c
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue