pedreviljoen / react-native-menu

Simple & lightweight customisable menu drawer component
MIT License
57 stars 16 forks source link

FlatList with MenuDrawer #102

Open sjelena97 opened 2 years ago

sjelena97 commented 2 years ago

code:

<MenuDrawer drawerContent={drawerContent()}...>
<FlatList/>
</MenuDrawer>

 const drawerContent = () => {
    return (
      //some filters
    );
  };`

in this case there is a bug - flatlist is not all visible and cannot be scrolled to the end

if i put Flat list outside of MenuDrawer like this:

<>
<MenuDrawer drawerContent={drawerContent()} ...></MenuDrawer>
<FlatList/>
</>

then drawer content is behind the FlatList on ios devices (I tried zIndex 0 on flatList and 1000 to drawerContent but doesn't help)