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.

Accessing rendered HTML in custom renderers

See original GitHub issue

Relates to #43. I’m looking to access the raw HTML of a table inside a custom renderer. The renderer is set up, but I want to find a good way to extract the relevant html.

Looking at the parameters, htmlAttribs and convertedCSSStyles are empty objects as expected, while passProps.html is the entire html document.

Children is the subchildren I’m looking for, but is already pre-processed into react native elements.

Is there a way to get the raw html contained by the rendered tag at this stage in the rendering process?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

14reactions
abhimanyuPathaniacommented, Mar 18, 2019

It is possible to get the actual HTML string in custom renderers so we could use that in a WebView?

1reaction
tclarke-scottlogiccommented, Nov 8, 2018

No, sorry, I think it’s simply not supported. If you look at the problem you’re trying to solve at a higher level, you can do quite a lot with “alterData”, “alterChildren”, “render”, and “onParsed”, thoguh.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rendering Custom HTML on a Summary Page - IBM
You can use the custom-output display element to render custom HTML on a summary page. The custom-output display element enables data from a...
Read more >
Extract raw HTML in react-native-render-html custom renderer
I'm using react-native-render-html to render html. The renderers method allows me to provide custom function to render a particular tag.
Read more >
Registering a Custom Renderer with a Render Kit - The Java ...
You register the renderer using the render-kit element of the application configuration resource file. Here is the configuration of AreaRenderer from the Duke's ......
Read more >
Issue #187 · meliorence/react-native-render-html - GitHub
I'm looking to access the raw HTML of a table inside a custom renderer. The renderer is set up, but I want to...
Read more >
Custom Rendering | React Native Render HTML - GitHub Pages
We may register a custom component renderer, but this is not mandatory (see next chapter). For a more detailed explanation of the allowed...
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