Benjamin-Dobell / react-native-markdown-view

MarkdownView for React Native
MIT License
190 stars 77 forks source link

Add support for nested lists #14

Open machour opened 6 years ago

machour commented 6 years ago

This sample code crashes with 'Views nested within a <Text> must have a width and height

import React from "react";
import { ScrollView } from "react-native";
import { MarkdownView } from "react-native-markdown-view";

const README = `
* one thing
* two things
  * two.1 things
* three things
`;

export default class App extends React.Component {
  render() {
    return (
      <ScrollView>
        <MarkdownView>{README}</MarkdownView>
      </ScrollView>
    );
  }
}
lukewlms commented 6 years ago

Love this library. I have the same issue - just indenting a bullet crashes the renderer. What would it take to implement this?

Crashes with this simple markdown, containing a single indented bullet

- Perform as many repetitions ("reps") as you can
 - (The first time trying any workout, only go to 75% of your max)
- Aim for 30 seconds to 2.5 minutes (about 2 minutes on average)

image

beausmith commented 6 years ago

Related: https://github.com/CharlesMangwa/react-native-simple-markdown/issues/60

xcv58 commented 6 years ago

Any update?