Skip to content

Placeholder is not displayed on web #697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ericpoulinnz opened this issue Jun 8, 2025 · 3 comments
Open

Placeholder is not displayed on web #697

ericpoulinnz opened this issue Jun 8, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@ericpoulinnz
Copy link

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"
/>
@tomekzaw
Copy link
Collaborator

tomekzaw commented Jun 8, 2025

Hi @ericpoulinnz, thanks for opening this issue!

@jmusial Could you please take a look?

@tomekzaw tomekzaw added the bug Something isn't working label Jun 8, 2025
@jmusial
Copy link
Contributor

jmusial commented Jun 10, 2025

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

Seems to be working there for me

Screen.Recording.2025-06-10.at.13.31.52.mov

@ericpoulinnz
Copy link
Author

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants