style width menu of react-native-paper

Viewed 1190

I have a menu with a anchor to a button.

I would like to style width of menu such as button.

I have try with style=width:100% but doesn't works. If I change the dimension in pixel, it change.

How I can style with flex mode (for dynamic width).

This is an example: https://snack.expo.io/@temuccio/menu

2 Answers

If you are trying to use flex: 1 to style this, you should pass this as the style prop: style={{ flex: 1 }}.

Related