Skip to content

workaround for empty preview for new architectureΒ #162

@kioltk

Description

@kioltk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions