react-native-material-tabs icon indicating copy to clipboard operation
react-native-material-tabs copied to clipboard

Tabs not showing when rendered within a menu

Open lsirdevan opened this issue 4 years ago • 2 comments

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

Video Example

lsirdevan avatar Oct 02 '19 17:10 lsirdevan

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.

iRoachie avatar Oct 03 '19 03:10 iRoachie

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.

gaspop avatar Feb 13 '20 12:02 gaspop