Skip to content
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

Support for react-native-web needed #93

Open
smendis opened this issue Jul 21, 2022 · 0 comments
Open

Support for react-native-web needed #93

smendis opened this issue Jul 21, 2022 · 0 comments

Comments

@smendis
Copy link

smendis commented Jul 21, 2022

Hi, I really need you help to figure out few things @dabakovich

Environment: I'm using react-native-web.

Problem: In your <MentionInput> code there are <Text> elements wrapped inside <TextInput>. This is not supported in web as <TextInput> is converted to a <textarea> and textareas can't have children components.

Expectation: It's ok NOT to highlight the items inside the <MentionInput> but I need a way to get this working in web.

Failed Attempt: I tried to remove <Text> inside the <TextInput> and set the mention value as @xxx inside the <TextInput> and have a different mapping outside <MentionInput>. When I implements this, multiple mentions no longer works

Appreciate if you can give me a hint on how to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant