elevation 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 react native

shadowColor: "#000",
shadowOffset: {
	width: 0,
	height: 2,
},
shadowOpacity: 0.25,
shadowRadius: 4.84,

elevation: 5,

Example 3: #react native shadow

shadowColor: '#470000',
        shadowOffset: {width: 0, height: 1},
        shadowOpacity: 0.2,
        elevation: 1

Example 4: react native elevation

shadowColor: '#000',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: .1,
shadowRadius: 8,
elevation: 2,

Example 5: box shadow in react native

shadowColor: "#000",
shadowOffset: {
	width: 0,
	height: 1,
},
shadowOpacity: 0.20,
shadowRadius: 1.41,

elevation: 2,

Example 6: elevation react native

shadowColor: "#000",
shadowOffset: {
	width: 0,
	height: 1,
},
shadowOpacity: 0.22,
shadowRadius: 2.22,

elevation: 3,

Tags:

Misc Example