Skip to content

Android error: Cannot add a yoga node to a parent without a measure function #86

Description

@kopax

While testing this exact markdown: https://github.com/mientjan/react-native-markdown-renderer/blob/master/README.md

I have the following error:

Android error: Cannot add a yoga node to a parent without a measure function!

This is how I render the markdown:

        <Markdown
          whitelist={['link', 'url', 'list']}
        >
          {item.description}
        </Markdown>

This is how simple-markdown is called:

https://github.com/CharlesMangwa/react-native-simple-markdown/blob/277a41b56d84707fe300cb820f259aae6a3f1593/src/index.js#L71

It breaks with or without the whitelist, while I expect it to work on both.

I want to only use the bullet point in my rendering, but adding more content should not break. How can I fix this?

Reproduction

https://snack.expo.io/@kopax/04bd18

Use Android device

Related issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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