Giter VIP home page Giter VIP logo

Comments (2)

iamacup avatar iamacup commented on June 2, 2024 1

This is a pain and is caused because of the wrapping of the textgroup rule on the underlying text.

The textgroup rule is added manually by this library because it is needed for wrapping text with text to allow multi line stuff - example below:

image

{/* this is how it is today - displayed correctly - View is a paragraph, Text is textgroup and child Text's are text*/}
<View style={{
    flexWrap: 'wrap',
    flexDirection: 'row',
    width: '100%'}}>
  <Text>
    <Text>hey there</Text>
    <Text style={{color: 'red'}}> some in line code hilight or something that is really long =wooooo </Text>
    <Text>the final bit of text</Text>
  </Text>
</View>

<View style={{marginTop: 30}}></View>

{/* this is how it would be - with no text group - displayed correctly - View is a paragraph, child Text's are text*/}
<View style={{
    flexWrap: 'wrap',
    flexDirection: 'row',
    width: '100%'}}>
  <Text>hey there</Text>
  <Text style={{color: 'red'}}> some in line code </Text>
  <Text>the final bit of text</Text>
</View>

<View style={{marginTop: 30}}></View>

{/* this is how it would be - with no text group - showing the problem without text group - View is a paragraph, child Text's are text*/}
<View style={{
    flexWrap: 'wrap',
    flexDirection: 'row',
    width: '100%'}}>
  <Text>hey there</Text>
  <Text style={{color: 'red'}}> some in line code hilight or something that is really long =wooooo </Text>
  <Text>the final bit of text</Text>
</View>

The problem is that the text group <Text> element wrapping the actual display <Text> item prevents the actual display item from applying the style correctly on android. Not sure exactly what to do but ideally it would be great to remove the textgroup item all together....

from react-native-markdown-display.

santimone avatar santimone commented on June 2, 2024

i dont understand why this issue is completed, none of the issues linked is a clear fix to the problem

from react-native-markdown-display.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.