react-iscroll icon indicating copy to clipboard operation
react-iscroll copied to clipboard

added tap / click elements example to readme

Open edencorbin opened this issue 7 years ago • 3 comments

It took me a little to figure out how to implement the click / tap functionality in react so I thought it would be helpful to add react specific code to the documentation. Let me know if you think so too.

edencorbin avatar Apr 29 '17 03:04 edencorbin

@edencorbin Is it anyhow different when you use it without react-iscroll? If yes, then it makes sense and I will provide some feedback on code itself :)

schovi avatar May 05 '17 12:05 schovi

Well, although it is not technically different, it requires setting up a ref, which is a react concept to my knowledge, and then adding a listener event to that ref. I'm a fan of verbose documentation. I noticed there was another closed issue or two about it so I thought I would share the steps. If it doesn't fit in with the documentation, no problem.

edencorbin avatar May 05 '17 16:05 edencorbin

@edencorbin My point is, that this is something many times solved and when you google you find same solution or package solving that like https://github.com/zilverline/react-tap-event-plugin So maybe find best solution and just link it in FAQ?

schovi avatar May 06 '17 11:05 schovi