Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kopax opened this issue Jun 10, 2020 · 0 comments

Comments

@kopax
Copy link

kopax commented Jun 10, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant