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
852 stars 60 forks source link

Can't input some other language, such as Chinese #452

Open ryzencool opened 3 months ago

ryzencool commented 3 months ago

when switch to chinese input method, then I input, but the input method auto switch to english

tomekzaw commented 2 months ago

Hi @ryzencool, thanks for opening the issue!

Could you please provide a video recording that demonstrates the problem?

ryzencool commented 1 month ago

Hi,@tomekzaw This is my demo video, The input box above is normal TextInput. The input box below is MarkdownTextInput. output

tomekzaw commented 1 month ago

Thanks @ryzencool. It seems to me that this issue might be related to https://github.com/Expensify/react-native-live-markdown/issues/181. Turns out that iOS keeps the composition input in self.markedTextRange. I need some more time to prepare a fix.

ryzencool commented 1 month ago

Thank you

tomekzaw commented 1 month ago

Hi @ryzencool, could you please try if https://github.com/Expensify/react-native-live-markdown/pull/520 resolves this issue? I've made a change that should fix multi-stage text input. Please let me know if you know how to test out the change or shall I provide some instructions for you.

ryzencool commented 4 weeks ago

Hi, thank you @tomekzaw, Can you provide some instructions for me?

tomekzaw commented 4 weeks ago

@ryzencool It would be best if you can just clone the repo, run the example app and check if it works.

gh repo clone Expensify/react-native-live-markdown
cd react-native-live-markdown
gh pr checkout 452
yarn
cd example
yarn
cd ios
bundle install
bundle exec pod install
cd ..
xed ios # Open Xcode
yarn start --reset-cache
ryzencool commented 4 weeks ago

ok,thank you