I am making an app whose footer is very much like that of Snapchat in that there's three icons that's opaque to the content below, but container is transparent. The effect should be similar to what's asked here w/ web css : How to make parent transparent but not the child?. My current footer is as follows:
<View style={appFooter.container}>
<Grid>
<Col size={17} > </Col>
<Col size={22} style={feedItem.centerItems}>
<Profile active={onProfile}/>
</Col>
<Col size={22} style={feedItem.centerItems} >
<Spice active={onFire} />
</Col>
<Col size={22} style={feedItem.centerItems}>
<News active={onNews} />
</Col>
<Col size={17} > </Col>
</Grid>
</View>
where the css is:
container : {
position: 'absolute'
, bottom : 0
, left : 0
, right : 0
, height : 50
// , backgroundColor: 'rgba(0,0,0,0.1)'
// '#00000000'
, opacity : 0.8
, flexDirection : 'column'
, justifyContent : 'center'
, alignItems : 'center'
},
As you can see in the comments, I have tried the solution rgba(...)
but it does not give me the effect I want. Right now the opacity: 0.8
solution gives me a footer container and its children with 0.8
opacity. However ideally only the footer is transparent. The three children icons are opaque.