Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
236 views
in Technique[技术] by (71.8m points)

reactjs - React Native - How to implement a text editor natively

I'm trying to build a rich text editor with React Native, but I struggled to implement the inline tags, such as adding bold or italic styling to a word or a phrase just like in the picture

enter image description here In web development this will be easily sorted out with a div with contenteditable set to true. Is there a way to do this with react native in a native way (no webview), or a workaround that could work?

question from:https://stackoverflow.com/questions/65940356/react-native-how-to-implement-a-text-editor-natively

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try this package it gives you all the controls of rich text field https://github.com/wxik/react-native-rich-editor


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...