react-native-context-menu-view
react-native-context-menu-view copied to clipboard
workaround for empty preview for new architecture
hello there,
there are a few separate issues where people complain about empty preview in new architecture, but still no fix.
for some reason there is a strange workaround - simply add nativeID with any non-empty string to your preview component
<ContextMenu
actions={actions}
onPress={(e) => {
}}
>
<View nativeID="WORKAROUND">
<Text>Hello world</Text>
</View>
</ContextMenu>
before:
after: