Open pcfutures opened 8 years ago
I've worked out that this works by changing the opacity of the content underneath the menu, rather than putting an overlay over the content.
Is this intentional?
This is needed since changing opacity can't achieve a translucent black overlay background that is common in this UI pattern
Turns out I was wrong. It is possible https://github.com/root-two/react-native-drawer/issues/162
In Drawer props put this: tweenHandler={(ratio) => { return { mainOverlay: { opacity: ratio/1.5, backgroundColor: 'black' } } }} In BackgroundColor put the color you want.
I'm using this with
type="overlay"
and the following code:but I can't get the overlay colour to change. It's stuck as a transparent blue colour. This may be something to do with something else, as the colour it's set to seems to match the theme colour.
Any help would be appreciated! I've attached a screenshot of what I mean.