view shadow react native code example
Example 1: shadow elevation react native
shadowColor: "#000",
shadowOffset: {
width: 0,
height: 3,
},
shadowOpacity: 0.27,
shadowRadius: 4.65,
elevation: 6,
Example 2: box shadow in react native
shadowColor: "#000",
shadowOffset: {
width: 0,
height: 4,
},
shadowOpacity: 0,
shadowRadius: 4.65,
elevation: 8,
Example 3: react native shadow android
<View style={{ elevation: 2 }}>
{children}
</View>