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

Placeholder is not displayed on web

Open ericpoulinnz opened this issue 7 months ago • 3 comments

I am unable to get placeholders to show up on web. They work fine iOS/Android and for regular TextInputs on all platforms. I'm on version 0.1.287

I can get the issue happening with the basic component and no styling:

<MarkdownTextInput
  parser={parseExpensiMark}
  placeholder="test"
/>

ericpoulinnz avatar Jun 08 '25 22:06 ericpoulinnz

Hi @ericpoulinnz, thanks for opening this issue!

@jmusial Could you please take a look?

tomekzaw avatar Jun 08 '25 23:06 tomekzaw

Hey @ericpoulinnz, can you check if you can reproduce this using the WebExample ?

Seems to be working there for me

https://github.com/user-attachments/assets/63678778-21f3-4668-ac52-84711acfa9a6

jmusial avatar Jun 10 '25 11:06 jmusial

@jmusial Hmm yeah the web example works.

I'm not applying any styles to the component in my app, so I'm wondering if it's one of the following issues interfering?

  • I use Metro, not Webpack, wondering if that "dangerouslyAddModulePathsToTranspile" is important? Surprised your example uses Webpack, I though Metro was preferred for RN web apps?
  • I have NativeWind installed. Though I'm not applying any style classes to the component, maybe something is interfering at a global level?
  • Same for React Native Paper?

ericpoulinnz avatar Jun 11 '25 21:06 ericpoulinnz