Draft-js: Question : Can I use "draft js" in "react native"?

Created on 20 Aug 2017  路  8Comments  路  Source: facebook/draft-js

I want to use "draft js" in "react native".
But I do not know how to do it.
How do I use "draft js" in "react native"?

I do not want to add "draft js render", but I want to add "draft js editor".

question

Most helpful comment

I am adding a text-editor feature in my react-native app and https://github.com/rehashstudio/react-native-draft-js only support rendering but I want to add "draft js editor". Alternative https://github.com/wix/react-native-zss-rich-text-editor is available but it don't support #tags or @user like autocomplete like feature can. can any one help me with this and how to achieve this.

All 8 comments

I thought I saw a project with draft-js in an RN WebView recently, although I can't find it at the moment, so maybe not. 馃槥 This might give you a good start, otherwise: https://github.com/facebook/draft-js/issues/138#issuecomment-261180745

I create a webpage where there is only a draftjs editor and use webview to show it. It's very buggy. The text disappears once you hit 'space'. Maybe this PR will fix the problem: https://github.com/facebook/draft-js/pull/1285

Hi!

I don't think we generally support using Draft.js with RN at this time. Internally at Facebook, folks have made similar components to Draft for React Native, but have not actually been using Draft in RN.

Sorry I don't have better news in this area - would be curious whether the react-native-draftjs-render project solves the problem.

https://github.com/rehashstudio/react-native-draft-js
this project support React Native

I am adding a text-editor feature in my react-native app and https://github.com/rehashstudio/react-native-draft-js only support rendering but I want to add "draft js editor". Alternative https://github.com/wix/react-native-zss-rich-text-editor is available but it don't support #tags or @user like autocomplete like feature can. can any one help me with this and how to achieve this.

I am adding a text-editor feature in my react-native app and https://github.com/rehashstudio/react-native-draft-js only support rendering but I want to add "draft js editor". Alternative https://github.com/wix/react-native-zss-rich-text-editor is available but it don't support #tags or @user like autocomplete like feature can. can any one help me with this and how to achieve this.

Hey man how did you solve this problem?

Was this page helpful?
0 / 5 - 0 ratings