Questions tagged [react-native-render-html]

Questions about react-native-render-html library usage and challenges. Please follow our guidelines when you plan to post a question here.

Our recommended checklist for new posts:

  • Be direct about your issue. We don't need extraneous context such as "I'm developing an app for doing XXX".
  • Provide useful context, react, react-native and react-native-render-html versions, the packager you're using, the distribution (expo, vanilla)... etc.
  • Provide a clear, synthetic snippet of code rather than a long bloated excerpt from your code.
  • If you are requesting help while facing a failure, please follow guidance for a minimal working example: https://stackoverflow.com/help/mcve
61 questions
1
vote
0 answers

Email signature distorted in react-native-render-html

I'm working on app which has feature to send/receive emails (mini gmail) in it. The problem is with rendering email signature. Everything else seems to work fine but when email has signature in it then this does not render correctly and whole view…
Zayn
  • 741
  • 1
  • 5
  • 22
1
vote
1 answer

'react-native-render-html' can't change font family for tag

I'm using react-native-render-html 6.3.4, attempting to use custom font, but can't seem to change the font family for 'strong' and 'em' tags. Other attributes are working like font size or font style but not font family. const html =…
Cool Dunno
  • 31
  • 2
1
vote
1 answer

Pool hard cap violation? Android images in React native

I have an Image component inside a modal in react native .64, and it works perfectly on iOS, but with Android I get a an error (for instance: Pool hard cap violation? Hard cap = 201326592 Used size = 200030968 Free size = 0 Request size =…
1
vote
0 answers

i want to use mathjax at specific point of data with react native render html . i have used Custom HTML tags but cant find the data inside the tag

I want to render mathjax when "katequation" class is comes in data i have a page of data which is rendered there are some long equations of math which react-native-render-html does not render in proper format so i use Custom HTML tags but the data i…
1
vote
1 answer

React Native HTML - rendering a linear background gradient

I’m currently HTML overflowing height: 300 a box, where React Native HTML is used. (this package: https://www.npmjs.com/package/react-native-render-html) this provides the following output when 'overflown' - a slight sharp cutoff of text before the…
Squiggs.
  • 4,299
  • 6
  • 49
  • 89
1
vote
1 answer

ReactNative - Unable to force paragraph to show Text right to left in react-native-render-html

As you can see below in the screenshot, the DOT starting the paragraph instead of ending it when aligning the text to right and do have the RTL ability in the code. I'm using react-native-render-html Lib and tried too much options to make it fully…
1
vote
0 answers

Error RN :Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate

I'm getting data from WordPress API and showing it in react native application. Getting this error only after adding component even I'm trying to parse a simple paragraph. This is my code - import React from "react"; import { ActivityIndicator, …
1
vote
0 answers

How to achieve accessibility in react-native-render-html in react native?

When I test accessibility , it does not read the html rendered content.
ANIME
  • 11
  • 1
1
vote
1 answer

How to grab a with a particular class using react-native-render-html

I have a specific that i need to custom render

So if my span tag has the class ql-formula i want to render it using MathText from this library, else the span tag should…
sumesh
  • 2,179
  • 2
  • 21
  • 37
1
vote
1 answer

Balise is displaying like in react-native-render-html custom renderer

I'm using react-native-render-html to render html and the HTML Tag is like a defines subscript text. Au IVe In my app : I'm trying to have style to avoid that but I think there is better way to solve the issue. What to you thing
1
vote
0 answers

How to make custom renderer interactive? (listen to component state update, and rerender)

I added checkbox into my custom renderer, but it doesn't listen to state update. Do you have any ideas how to make state working in custom renderer? I have red, that in v5.0.1 you can use as a renderer -- react components. But I can't find details…
Rustam Apay
  • 551
  • 1
  • 4
  • 18
1
vote
1 answer

Is it possible to navigate to in-page URL fragment subresources with react-native-render-html as implementing browser behavior?

Is it possible to navigate to in-page URL fragment subresources with react-native-render-html as implementing browser behavior? Here is an example. Given this snippet for the html prop:

The Title

Krish
  • 11
  • 2
1
vote
0 answers

How to allow selecting partial text with the react-native-render-html component?

The react-native-render-html component has a textSelectable property, but when set to true, it enables copying the entire text in the component, and doesn't allow highlighting to copy/paste individual text. Is it possible to allow selecting partial…
Mitch Downey
  • 887
  • 1
  • 11
  • 15
1
vote
4 answers

how to remove empty p tag and   from html in react-native

i want to remove empty p tag and   from dynamic html content. below is html content retrieved from api response. empty p tag and   creates unwanted whitespace. i want to remove unwanted whitespace. i am using react-native-render-html package…
1
vote
1 answer

Unable to resolve XXX from module YYY

I’m building a small app that fetch contents from an API, some of the content is in HTML and i’m willing to display it in HTML (basic tags, like B, I, P and so on). I tried to use react-native-render-html and it also requires react-native-webview…
popeating
  • 386
  • 1
  • 2
  • 16