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

Lists: Nesting of <View> withing <Text> is not supported on Android #90

Open
afilp opened this issue Apr 19, 2018 · 4 comments
Open

Lists: Nesting of <View> withing <Text> is not supported on Android #90

afilp opened this issue Apr 19, 2018 · 4 comments

Comments

@afilp
Copy link

afilp commented Apr 19, 2018

I have this simple markdown:

  • Free Wi-Fi internet
  • Coffee-tea set with electric kettle
  • Air-condition (individual controlled)

This breaks in Android (using v1.1.0), with the following error:

Nesting of <View> withing <Text> is not supported on Android

@ragozin-n
Copy link

Same problems

@carlosvini
Copy link

carlosvini commented Mar 22, 2019

Can be solved using View instead of Text at https://github.com/CharlesMangwa/react-native-simple-markdown/blob/next/src/rules.js#L177

const listItemText = createElement(View, ...)

You can pass your own rules and temp fix it yourself if really needed.

@afilp
Copy link
Author

afilp commented Mar 27, 2019

@jp7carlos Thanks, can't a fix be permanent in the package so that we do not have to write these custom rules? Thanks again.

@carlosvini
Copy link

@afilp I'm not a contributor, just someone who had the same problem ;)

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

3 participants