-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Description
When using FlashList, major library for high performance list, and using Menu in reneder() function, the popup displays at incorrect position (display near the first item of the list).
https://docs.expo.dev/versions/latest/sdk/flash-list/
It can be reproduced just by replacing FlatList by FlashList in the exmaple.
https://github.com/instea/react-native-popup-menu/blob/master/examples/InFlatListExample.js
return (
<MenuProvider style={styles.container}>
<FlashList
data={data}
renderItem={({ item }) => (
<Menu onSelect={(value) => Alert.alert(value)}>
<MenuTrigger text={"Select option " + item.value} />
<MenuOptions>
<MenuOption value="A" text="A" />
<MenuOption value="B" text="B" />
<MenuOption value="C" text="C" />
</MenuOptions>
</Menu>
)}
style={{ height: 200 }}
/>
</MenuProvider>
When clicking item 30, popup appears at the top.
FlashList is one of the major RN library for list, so I'd appreciate if you could handle this.
noon-ravi
Metadata
Metadata
Assignees
Labels
No labels