Incremental work on rich text

This commit is contained in:
2025-06-21 22:58:33 -07:00
parent 2636746da3
commit c93fddc343
3 changed files with 55 additions and 6 deletions
+10 -4
View File
@@ -34,8 +34,8 @@ export default function NewEntryScreen() {
onUpdate(props) {
const newText = props.editor.getNativeText();
setEntryText(newText);
console.log("Text", newText);
},
}, // Add these properties to improve compatibility
});
const insets = useSafeAreaInsets();
@@ -89,7 +89,13 @@ export default function NewEntryScreen() {
}}>
{stats.words} words · {stats.characters} characters
</Text>
<EditorContent
editor={editor}
placeholder="Write something..."
inputRef={inputRef}
autoFocus
/>
{/*
<TextInput
ref={inputRef}
style={{
@@ -107,7 +113,7 @@ export default function NewEntryScreen() {
placeholder="Write your entry here..."
value={entryText}
onChangeText={setEntryText}
/>
/> */}
<ScrollView
horizontal={true}
keyboardShouldPersistTaps="always"