GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aihehuo/react-native-draftjs-renderer: Suitable for editor react-draft-wysiwyg https://github.com/jpuri/react-draft-wysiwyg

BranchesTags
Open more actions menu

Latest commit

 

History

157 Commits
157 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
flow-workaround
flow-workaround
 
 
sample
sample
 
 
src
src
 
 
.babelrc
.babelrc
 
 
.editorconfig
.editorconfig
 
 
.eslintignore
.eslintignore
 
 
.eslintrc
.eslintrc
 
 
.flowconfig
.flowconfig
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.travis.yml
.travis.yml
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

React Native Draft.js Render

A React Native render for Draft.js model and works great with react-draft-wysiwyg.

Getting Started

Install React Native Draft.js Render on your React Native project, using NPM or Yarn:

npm i -S react-native-draftjs-renderer
# or...
yarn add react-native-draftjs-renderer

Using

Just import and insert your Draft.js model on RNDraftJSRender:

import React from 'react';
import {
  AppRegistry,
} from 'react-native';

import RNDraftJSRender from 'react-native-draftjs-renderer';
import contentState from 'DraftJs/contentState';

const MyApp = () => (
  <RNDraftJSRender
    contentState={contentState}
  />
);

AppRegistry.registerComponent('MyApp', () => MyApp);

TODO:

  • [Android] Justify text content support.

UPDATE:

1.1.1

  • Minor style change.

1.1.0

  • Remove dynamic Image height support, which will cause image blink.

1.0.1

  • Fix the image auto height crop problem.
  • Fix fontSize can not be over 14 bug.
  • Increase the Text padding size to 2.
  • Add dynamic Image height support.

About

Suitable for editor react-draft-wysiwyg https://github.com/jpuri/react-draft-wysiwyg

github.com/jpuri/react-draft-wysiwyg

Topics

draft-jsdraftjsreact-nativerenderrich-text

Resources

Readme
Activity
Custom properties

Stars

6 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.