wix-incubator / react-native-zss-rich-text-editor

React Native rich text editor based on ZSSRichTextEditor
Other
841 stars 310 forks source link

Does not work with Android device #102

Closed ethanyuwang closed 6 years ago

ethanyuwang commented 6 years ago

I initialized a react native project with version 0.55.4 and installed these dependencies:

"react-native-keyboard-spacer": "^0.4.1",
"react-native-webview-bridge-updated": "^1.0.9",
"react-native-zss-rich-text-editor": "^1.1.0"

Then I copied and pasted the example code from this repository but the text editor didn't show at all:

screenshot_1527632136

ethanyuwang commented 6 years ago

missed this step:

On Android, add the following to the end of your android/app/build.gradle

project.afterEvaluate { apply from: '../../node_modules/react-native-zss-rich-text-editor/htmlCopy.gradle'; copyEditorHtmlToAppAssets(file('../../node_modules/react-native-zss-rich-text-editor')) }