Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set Drawer Menu Transparent? #2875

Closed
Donhv opened this issue Feb 12, 2018 · 3 comments
Closed

How to set Drawer Menu Transparent? #2875

Donhv opened this issue Feb 12, 2018 · 3 comments

Comments

@Donhv
Copy link

Donhv commented Feb 12, 2018

I setBackground: transParent in DrawerContent ( ).
But It can't see through. it only opacity

In contentComponent:
return ( <View style={[styles.container]}> </View> )
container style:
container: {
flex: 1,
backgroundColor: 'rgba(0, 0, 0,0.2)',
borderWidth: 2,
borderColor: 'red',
}.
I try replace backgroundColor:'transparent' but it same.
screen shot 2018-02-12 at 3 43 28 pm
Anyone help me make it transparent & see through( with contentComponent={DrawerContent} )

@daviscabral
Copy link
Collaborator

@Donhv That might not be related to react-native-router-flux, but to react-native-drawer-layout-polyfill - the DrawerView component used in react-navigation.

It seems the DrawerView has a drawerBackgroundColor that you might try use to set the transparency. I haven't tried, but let me know if that does not work.

@Donhv Donhv closed this as completed Feb 23, 2018
@alejandropinson
Copy link

@Donhv Did you make it work? Im having the same issue... @daviscabral how can I access the DrawerView?

@Donhv
Copy link
Author

Donhv commented Mar 30, 2018

@alejandropinson you should use react-native-drawer. it work well with router-flux v4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants