I'm currently working on developing a similar example using react-native-svg.
The background image I am using is dynamic and needs a transparent circular mask. Additionally, I want to apply a blur effect to that specific section of the background image. While I have successfully achieved a blurred cutout, I am struggling to create the hollow effect as shown below. Any tips or suggestions would be greatly appreciated.
https://i.sstatic.net/EICIO.png
Code Sample:
<ImageBackground
resizeMode="cover"
source={{ uri: route.params?.image }}
style={{ flex: 1}}
blurRadius={0}
>
<View
style={{
flex: 1,
justifyContent: "center",
alignItems: "center",
}}
>
<Svg width={300} height={300}>
<Circle cx={150} cy={150} r={120} fill={"transparent"} />
<Circle
cx={150}
cy={150}
r={120}
strokeWidth={60}
stroke={hexToRgba("#000", "0.4")}
fill="transparent"
/>
</Svg>
</View>
</ImageBackground>
Expected Output: