Accessing rendered HTML in custom renderers
See original GitHub issueRelates 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:
- Created 5 years ago
- Reactions:1
- Comments:11
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is possible to get the actual HTML string in custom renderers so we could use that in a
WebView
?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.