How to use react-native-render-html - 1 common examples

To help you get started, we’ve selected a few react-native-render-html examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github archriss / react-native-render-html / Demo / src / snippets.js View on Github external
function blueCircleRenderer (htmlAttribs, children, convertedCSSStyles, passProps) {
    // This helper allows you to compose the final style of your renderers easily.
    // It will return a style object based on :
    // - the default styles for this HTML tag (if any)
    // - your "htmlStyles" prop for this tag
    // - the conversion of the "style" attribute from CSS to RN
    // - your "classesStyles" prop for the classes of the rendered component
    // - any "additionalyStyles" you provide in the options object
    const style = _constructStyles({
        tagName: 'bluecircle',
        htmlAttribs,
        passProps,
        styleSet: 'VIEW',
        baseFontSize: 14
    });
    return (

react-native-render-html

The hackable, full-featured Open Source HTML rendering solution for React Native.

BSD-2-Clause
Latest version published 2 years ago

Package Health Score

74 / 100
Full package analysis

Popular react-native-render-html functions