Effects
elevation (Android only)
elevation[index: number]
set the elevation of an element:
import { View } from 'react-native'
import C from 'consistencss'
...
return (
<View style={C.elevation1}>
)
elevation1
returns { elevation: 1 }elevation
returns { elevation: 2 }- ...
opacity:
opacity[alpha: number]
set the visibility of an element:
import { View } from 'react-native'
import C from 'consistencss'
...
return (
<View style={C.opacity100}>
)
opacity100
returns { opacity: 1 }opacity50
returns { elevation: 0.5 }opacity25
returns { elevation: 0.25 }- ...