You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found a workaround, it seems that this is caused by background on Text created for Code or Pre tags.
Adding this Dummy Text component as Pre and Code solves the issue:
import{typeFC,typeReactNode}from'react';import{Text}from'react-native';constDummyText: FC<{children: ReactNode}>=({ children })=>{return<Text>{children}</Text>;};constComponent=()=>{return(<SyntaxHighlighterlanguage={language}style={atomOneLight}fontSize={fontSize}PreTag={DummyText}CodeTag={DummyText}highlighter={'hljs'}>{content}</SyntaxHighlighter>);}
When using a TextInput element the cursor disappears when inside color Text.
The cursor only appears when it's at the end of the line.
this is my code:
The text was updated successfully, but these errors were encountered: