question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to set paragraph space

See original GitHub issue

This is my style of p tag

const htmlStyle = StyleSheet.create({
  p: {
    margin: 5
  }
});

But It does not work. The paragraph space is still huge! simulator screen shot 2017 8 3 6 36 14

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

10reactions
richchurchercommented, Sep 24, 2017

Note that doing something like this comes pretty close:

    return (
        <HTMLView
          addLineBreaks={false}
          stylesheet={richTextStyles}
          value={content} />
    )

// ...

const richTextStyles = StyleSheet.create({
  p: {
    marginTop: 3,
    marginBottom: 3
  }
})
9reactions
eidsza1commented, May 2, 2020

This works perfect

value={"<div>"+ item +"</div>"}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change spacing between paragraphs - Microsoft Support
Go to Layout, and under Spacing, click the up or down arrows to adjust the distance before or after the paragraph. You can...
Read more >
Word: Line and Paragraph Spacing - GCFGlobal
Select the paragraph or paragraphs you want to format. selecting paragraphs in a letter · On the Home tab, click the Line and...
Read more >
Set Line Spacing and Paragraph Spacing in Word - Instructions
Alternatively, to quickly change line spacing for a selected paragraph in Word, click the “Line and Paragraph Spacing” button in the “Paragraph” ...
Read more >
MS Word Formatting: Adjusting Spacing Between Paragraphs
Set your cursor to the location of the paragraph spacing. Click on the Line and Paragraph Spacing icon in the Home Ribbon. Select...
Read more >
How to change paragraph spacing in LaTeX - Overleaf
the \SetSinglespace{value} command uses value to adjust single-line spacing to accommodate line spacing of text typeset with fonts whose character shapes (“ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found