react-native-controlled-mentions icon indicating copy to clipboard operation
react-native-controlled-mentions copied to clipboard

react-native-web

Open maxhudson opened this issue 4 years ago • 3 comments

https://snack.expo.io/@dabakovich/mentionsapp - see web tab

Looks like there are two present issues.

  1. The rendered <TextInput> is getting an object as its value
  2. Selecting a mention doesn't actually seem to modify the value

maxhudson avatar Feb 23 '21 19:02 maxhudson

It looks like you're rendering elements inside of the <TextInput> as children when you could wrap the <TextInput> and the <Text> overlay in a <View>.

Will try to make a PR.

maxhudson avatar Feb 23 '21 19:02 maxhudson

https://github.com/dabakovich/react-native-controlled-mentions/pull/32

Not sure how you'd like to test/verify functionality if you don't have a rn-web project already, but it's not too hard to set up. I've been using wml (npm package alternative to npm link that works well with react-native).

maxhudson avatar Feb 23 '21 21:02 maxhudson