Code Monkey home page Code Monkey logo

itsalir / react-native-render-html Goto Github PK

View Code? Open in Web Editor NEW

This project forked from meliorence/react-native-render-html

0.0 0.0 0.0 50.13 MB

iOS/Android pure javascript react-native component that renders your HTML into 100% native views

Home Page: https://meliorence.github.io/react-native-render-html/

License: BSD 2-Clause "Simplified" License

Shell 0.35% JavaScript 8.13% Ruby 0.06% TypeScript 76.81% CSS 0.35% SCSS 3.31% MDX 10.98%

react-native-render-html's Introduction

platforms runs with expo
npm npm npm
github issues
Rate on Openbase


react-native-render-html

Based on the original work of Thomas Beverley, props to him.

An iOS/Android pure javascript react-native component that renders your HTML into 100% native views.

๐Ÿ—ƒ๏ธ Releases

The Foundry (v6) release is finally stable, and is now-on the recommended version. Check out the announcement blog post in our brand new website. We also have a migration guide for those who are coming from v5 and below.

โš ๏ธ You are on the master branch which is home for the latest development. Check the table bellow to get documentation for your exact version.

Minor Branch Documentation Latest
next master - npm
6.3 release/6.3 Official Website npm
5.1ย ย  release/5.1ย ย  release/5.1/README.md npm
4.2ย ย  release/4.2ย ย  release/4.2/README.md npm

๐Ÿ’ป Install

npm install react-native-render-html
yarn add react-native-render-html

๐Ÿšค Basic Usage

import React from 'react';
import { useWindowDimensions } from 'react-native';
import RenderHtml from 'react-native-render-html';

const source = {
  html: `
<p style='text-align:center;'>
  Hello World!
</p>`
};

export default function App() {
  const { width } = useWindowDimensions();
  return (
    <RenderHtml
      contentWidth={width}
      source={source}
    />
  );
}

๐Ÿ“˜ Documentation

See our official website and the official Discovery App.

๐Ÿ“ฑ Example

You like to learn by example? We have a tutorial from which the demo GIF has been extracted: A WebView-free Blog App with React Native Render HTML.

๐Ÿ““ Changelog

The changelog is available here: packages/render-html/CHANGELOG.md.

๐Ÿ’ก Help

Please refer to our dedicated document.

๐Ÿ‘ฅ Community

You're always welcome to join our discord channel :-).

๐Ÿ“ Contributing

Check-out our contributing guide.

๐Ÿ’™ Sponsorship

Want to support this project or hire us to implement a feature? Check out this page.

โš–๏ธ License

The source code is licensed under BSD 2-Clause "Simplified" License.

react-native-render-html's People

Contributors

jsamr avatar exilz avatar ikhsanalatsary avatar peacechen avatar chrisedson avatar duyphambhtech avatar krystofcelba avatar muhamad-rizki avatar charpeni avatar ryabchikus avatar hyb175 avatar ctriantaf avatar ajmeese7 avatar airshipalex avatar alexisbronchart avatar cherniavskii avatar brsaylor2 avatar b-steel avatar barbogast avatar chr314 avatar mysport12 avatar daliaelhefny avatar soundblaster avatar erxclau avatar juniorklawa avatar fauzie811 avatar amdrade avatar ijzerenhein avatar henry40408 avatar jonathonlui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.