react-native-blur
react-native-blur copied to clipboard
Is it possible to use borderRadius on BlurView?
Doesn't appear to be taking borderRadius even when I have BlurView nested inside a
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
Also add overflow: 'hidden' to the View to get the borderRadius working
Example:
<View style={{
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>
</View>