react-native-simple-markdown icon indicating copy to clipboard operation
react-native-simple-markdown copied to clipboard

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

Open afilp opened this issue 7 years ago • 4 comments

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

afilp avatar Apr 19 '18 08:04 afilp

Same problems

ragozin-n avatar Jan 02 '19 08:01 ragozin-n

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.

carlosvini avatar Mar 22 '19 20:03 carlosvini

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

afilp avatar Mar 27 '19 13:03 afilp

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

carlosvini avatar Mar 27 '19 14:03 carlosvini