react-native-live-markdown icon indicating copy to clipboard operation
react-native-live-markdown copied to clipboard

Is there a way to use the logic of this package for a standalone Markdown display component without text editing?

Open markwitt1 opened this issue 1 year ago • 5 comments

Asking this as this seems to be the only well-maintained markdown library, so would love to use it just for displaying

markwitt1 avatar Nov 14 '24 16:11 markwitt1

Hi @markwitt1, thanks for opening this issue.

Looks like it's related to https://github.com/Expensify/react-native-live-markdown/issues/205.

We're working on it in https://github.com/Expensify/react-native-live-markdown/pull/125 but had to prioritize other tasks.

For now, you can also use MarkdownTextInput with editable={false} as a workaround.

tomekzaw avatar Nov 15 '24 07:11 tomekzaw

Hey @tomekzaw , thanks for the quick update! Do you think there is already an MVP version one could use for very simple components such as text/bold text / list items? Also what would be the downside of just wrapping a UIKit markdown library?

markwitt1 avatar Nov 15 '24 10:11 markwitt1

Do you think there is already an MVP version one could use for very simple components such as text/bold text / list items?

At this time not really, sorry.

what would be the downside of just wrapping a UIKit markdown library?

There are no downsides, it's just another approach. Live Markdown is meant to be a drop-in replacement for React Native's built-in TextInput (and hopefully Text) components so it makes sense to build on top of the RN native components.

tomekzaw avatar Nov 15 '24 16:11 tomekzaw

Hi there! Any updates on this? Thanks for your work on this!

markwitt1 avatar Jan 06 '25 19:01 markwitt1

@markwitt1 No updates for now, sorry. This is still on the roadmap, though.

tomekzaw avatar Jan 07 '25 10:01 tomekzaw