Expensify / react-native-live-markdown

Drop-in replacement for React Native's TextInput component with Markdown formatting.
https://www.npmjs.com/package/@expensify/react-native-live-markdown
MIT License
667 stars 44 forks source link

Adding newline in the middle of the text doesn't update cursor position on iOS on Fabric #375

Open tomekzaw opened 3 weeks ago

tomekzaw commented 3 weeks ago

945c704 + iOS + Fabric

https://github.com/Expensify/react-native-live-markdown/assets/20516055/5d4af057-a45d-42f6-9764-3f892adfe32d

tomekzaw commented 3 weeks ago

Also reproducible on RN 0.74:

https://github.com/Expensify/react-native-live-markdown/assets/20516055/3af11810-a815-4844-bd0a-4283d169645f

tomekzaw commented 3 weeks ago

Works correctly on Paper:

https://github.com/Expensify/react-native-live-markdown/assets/20516055/63a12b88-7589-456e-ac00-75f2af57e824

tomekzaw commented 3 weeks ago

It works correctly when I remove the following lines in example/src/App.tsx:

https://github.com/Expensify/react-native-live-markdown/blob/945c704278ece506bb484edbbb9091182b53cbbf/example/src/App.tsx#L102-L103