React-native-blur: Is it possible to use borderRadius on BlurView?

Created on 10 Apr 2016  路  3Comments  路  Source: Kureev/react-native-blur

Doesn't appear to be taking borderRadius even when I have BlurView nested inside a and put a borderRadius on the View.

Most helpful comment

overflow: 'hidden' on the parent container does the trick.

All 3 comments

overflow: 'hidden' on the parent container does the trick.

how to set border radius on bottom left and right ?

how to set border radius on bottom left and right ?

Firstly create main which will hold all borderRadius such as bottom left and right and inside in that View just add BlurView without borderRadius.

Also add overflow: 'hidden' to the View to get the borderRadius working

Example:
~~~
borderRadius: 9,

        borderTopRightRadius: 0, 
        borderTopLeftRadius:0, 
        overflow: "hidden",  
        flex: 1,  
        width: "100%",  
        backgroundColor: "transparent". 
    }}>
    <BlurView
        blurType={"light"}
        blurAmount={20}
        reducedTransparencyFallbackColor="rgba(37,42,54,.25)"
        style={[
            {  
                width: "100%", 
                height: 100,
                backgroundColor: "rgba(37,42,54,0.25)",
            }
        ]}
    >
        {/* ADD CONTENT */}
    </BlurView>


~~~

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fogil picture fogil  路  8Comments

leonskim picture leonskim  路  5Comments

sandroferrari picture sandroferrari  路  5Comments

ajaykumar97 picture ajaykumar97  路  3Comments

breadadams picture breadadams  路  5Comments