Incremental work on rich text
This commit is contained in:
+10
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user