lwansbrough / react-native-markdown

Markdown component for React Native
MIT License
277 stars 80 forks source link

Crash potential #7

Open lwansbrough opened 9 years ago

lwansbrough commented 9 years ago

There's a potential for application crashing if the Markdown code produces a structure like the following:

<Text>
  <View/>
</Text>

I've implemented a state property withinText (bool) which can be used for various logic related to text rendering - one of these cases should be checking if the current element will be rendered inside a <Text/> element.