dominicstop / react-native-ios-context-menu

A react-native component to use context menu's (UIMenu) on iOS 13/14+
MIT License
572 stars 29 forks source link

Flatlist Render Issue #71

Closed timothyerwin closed 1 year ago

timothyerwin commented 1 year ago

Hey, great library. Very nice with a lot of examples. I'm just having some issue getting a basic context working with a FlatList. I was wondering if maybe you saw this before and could offer any tip?

Basically everything is good until I long press and then this happens. I basically just copied the code from this example: https://github.com/dominicstop/react-native-ios-context-menu/blob/master/example/src/screens/Test03Screen.tsx

Simulator Screenshot - iPhone 14 - 2023-07-04 at 14 24 36

If I put a View around it then it sort of fixes it but still doesn't seem to calculate the renders properly:

Screenshot 2023-07-04 at 2 37 43 PM

simulator_screenshot_6629FAD5-2DFC-410A-B571-23A17846553A

timothyerwin commented 1 year ago

Ok, nevermind...I figured it out. The style in context menu must match the border style of the message bubble.

Screenshot 2023-07-04 at 2 51 51 PM