react-native-code-editor
react-native-code-editor copied to clipboard
A code editor with syntax highlighting built for React Native applications.
It would be a great thing if we can have a built-in right-top sided copy code icon that would copy the the text written inside the editor.
There is a small ongoing issue involving the cursor misaligning from the text. This is due to the fact that a text input is rendered on top of the syntax...
I have realized that I can't use the state to get the value... I asked a question about 2 weeks ago and got no response. Please anyone with a solution...
https://user-images.githubusercontent.com/98604306/176841761-af583e08-9508-4780-b3c2-0fb53c736305.mp4 How do I solve this The code ```ts ``` Styles ```ts codeEditorStyles: { fontFamily: 'Muli', fontSize: 20, inputLineHeight: 28, highlighterLineHeight: 28, } ```
https://user-images.githubusercontent.com/98604306/178748289-369c9d25-24f3-4bda-8f80-7a37fb1af863.mp4 The code ``` const [editorCode, setEditorCode] = useState('') setEditorCode(value) } initialValue={ exampleCode } /> ``` when i remove `onChange={ value => setEditorCode(value) } ` , there's no issue but...
Support for an onFocus prop would be great here. I'm showing a readonly printout of provided code when the input isn't focused and rendering the editor when it *is* focused–not...
how to turn off wrap?