react-native-context-menu-view icon indicating copy to clipboard operation
react-native-context-menu-view copied to clipboard

workaround for empty preview for new architecture

Open kioltk opened this issue 5 months ago • 1 comments

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:

Image

after:

Image

kioltk avatar Aug 18 '25 13:08 kioltk