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}>
)
elevation1returns { elevation: 1 }elevationreturns { 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}>
)
opacity100returns { opacity: 1 }opacity50returns { elevation: 0.5 }opacity25returns { elevation: 0.25 }- ...