react-native-simple-markdown
react-native-simple-markdown copied to clipboard
Lists: Nesting of <View> withing <Text> is not supported on Android
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
Same problems
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.
@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 I'm not a contributor, just someone who had the same problem ;)