react-native-live-markdown
react-native-live-markdown copied to clipboard
Text selection on Web doesn't work when passing `markdownStyle` without `useMemo`
Description:
When passing markdownStyle prop directly into MarkdownInputComponent without useMemo first e.g. markdownStyle={{link: {color: 'limegreen'}}} text selection stops working.
https://github.com/user-attachments/assets/c06b81f7-b7a3-4a30-b1cb-5f7cd700784d
Reproduction steps:
- Use WebExample app
- Change
markdownStyle={markdownStyle}tomarkdownStyle={{link: {color: 'limegreen'}}}and save - Try selecting part of the input
Commit: c352064a2f6c71d457277d958a0270c9d989db5a
cc @BartoszGrajdek @Skalakid
Please assign me as I will work on it.