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

Flexing OptionsMenu #7

Open
Stanley521 opened this issue Jan 18, 2020 · 4 comments
Open

Flexing OptionsMenu #7

Stanley521 opened this issue Jan 18, 2020 · 4 comments

Comments

@Stanley521
Copy link

Stanley521 commented Jan 18, 2020

unable to flex OptionsMenu so that it fills the parent height.

Edit:
for example this,

<View style={{ flex: 1, backgroundColor: 'pink', flexDirection: 'row', justifyContent: 'center', alignItems: 'center'}}> <OptionsMenu customButton={( <View style={{ backgroundColor: 'green'}}> <Text style={{color: 'white'}}> More )} destructiveIndex={1} options={["Test", "Cancel"]} actions={[ () => {}]} />

I would like the OptionsMenu to flex and fill the view.
How can I accomplish it?

I would like the green(Touchable) to flex to pink.
Do you know how can I accomplish it?

@hali241997
Copy link

Can you explain the issue?

@Stanley521
Copy link
Author

Stanley521 commented Jan 21, 2020

for example this,
<View style={{ flex: 1, backgroundColor: 'pink', flexDirection: 'row', justifyContent: 'center', alignItems: 'center'}}> <OptionsMenu customButton={( <View style={{ backgroundColor: 'green'}}> <Text style={{color: 'white'}}> More </Text> </View> )} destructiveIndex={1} options={["Test", "Cancel"]} actions={[ () => {}]} /> </View>
I would like the OptionsMenu to flex and fill the view.
How can I accomplish it?

@hali241997
Copy link

Screenshot_20200123_132948_com test

Do you want something like this?

@Stanley521
Copy link
Author

Stanley521 commented Jan 31, 2020

correct, sorry for the late reply! I have updated the code, I would like the green(Touchable) to flex to pink.
Do you know how can I accomplish it?

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

2 participants