react-native-material-tabs
react-native-material-tabs copied to clipboard
Tabs not showing when rendered within a menu
I have an interesting use case that requires MaterialTabs to be rendered within a drop down menu. For some reason on iOS, the menu does not appear until some sort of input is focused, wether that be a checkbox, datepicker etc.
This issue does not appear on Android though, so it's got me scratching my head. Does anyone have any thoughts?
I've made a snack to show an example of the use case & issue.
https://snack.expo.io/@remoradev/09c4ea
Can you also submit an issue on react-native-paper's repo? I'm not able to immediately deduce what might be causing this, but if we're both looking into it there's a better chance of it being fixed.
Perhaps this is related to another issue I found. On Android, if the MaterialTabs component is rendered within the footer of a FlatList, and is off-screen when the root view is first rendered, it won't appear until something triggers the root view to re-render, i.e. a changing the state.