imnapo / react-native-cn-richtext-editor

Richtext editor for react native
MIT License
218 stars 114 forks source link

How to access value from editor? #142

Open himanshupadia opened 4 years ago

himanshupadia commented 4 years ago

Thank you for creating this editor. I have successfully implemented this editor with limited toolbar functions.

I want to know that how to get value (text that we have typed) from editor. I have new in RN, have tried to get value but didn't get success. Could any one of you please help to resolve this issue, as I want to sent this text to server and then do further process.

Please please help me, After successful implementation I really don't want to stuck on this point.

any help appreciate. Thanks in advance.

RanderGabriel commented 4 years ago

You should use the onValueChanged prop of the CNRichTextEditor to listen for value changes and then store it your component state, just as the sample on the README.md