Open camnicklaus opened 6 years ago
try this.
const drawerStyles = {
mainOverlay: {
backgroundColor: 'black',
opacity: 0,
},
}
tweenHandler={(ratio) => ({
mainOverlay: {
opacity: ratio / 2,
}
})
}
@robinv8 Thanks.
I can see the opacity in react-native-debugger dev tools but the background color seems to remain set to the default: #ccc when I change it in the dev tools it seems to work The commented out tweenHandler code was just me trying to see if there was some other way to set background color with the drawer closed. I set the Opacity to 0.5 just to trouble shoot. All I want to do is set the background color when the drawer is closed.