react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Add Text.onPressIn|Out

Open rectified95 opened this issue 3 years ago • 9 comments

https://github.com/facebook/react-native/commit/1d924549cad75912191005c8f68dd73e15b07183 Adds 2 new events to <Text> - onPressin/onPressOut. We could add them too.

rectified95 avatar Jun 04 '21 19:06 rectified95

hey! I can help with this one!

rbrishabh avatar Jun 05 '21 11:06 rbrishabh

@rectified95 Can you confirm whether this is as simple as implementing these props in our view managers and where that code should go? As long as we don't need a native implementation for this it should be straightforward.

chrisglein avatar Jun 07 '21 18:06 chrisglein

Hi @chrisglein and @rectified95, Can I work on this issue (if no one else is working on it)? And can you please point out the files where I need to make changes?

sourabh112 avatar Aug 24 '21 09:08 sourabh112

@sourabh112 I'm assigning this issue to you. The files that need to be changes would be the .windows.js forks of the Text files you can see in the original RN commit diff in the issue description. For reference, I previously added this to TextInput: https://github.com/microsoft/react-native-windows/pull/6754 One thing to note, though, is that I also added code firing JS events as a way of passing along the native XAML events there - I'm not sure if this is necessary, since there doesn't seem to be analogous code for iOS/Android: in short, you could check if the RN event routing system somehow invokes the in/out versions of Text.onPress, without us having to do that manually.

rectified95 avatar Aug 25 '21 11:08 rectified95

Thanks, @rectified95 for assigning this issue to me. I'm a bit confused at some points but I think I can figure it out on my own.

sourabh112 avatar Aug 26 '21 03:08 sourabh112

@sourabh112 Have you made any progress? :)

rectified95 avatar Sep 21 '21 23:09 rectified95

@rbrishabh Would you still be interested in taking this one over if the current assignee cannot complete the task?

rectified95 avatar Oct 04 '21 19:10 rectified95

@TatianaKapos Is this already complete? If not, will it make 0.69, or should it be moved to 0.70?

jonthysell avatar May 06 '22 23:05 jonthysell

moved to .70, hit some issues trying to implement this

TatianaKapos avatar May 09 '22 17:05 TatianaKapos

I think we get these "for free" no? Can this be closed?

rozele avatar Oct 11 '22 03:10 rozele

https://github.com/facebook/react-native/pull/34944 will fix

rozele avatar Oct 11 '22 14:10 rozele

It technically works today, but you must also set an onPress callback.

rozele avatar Oct 11 '22 14:10 rozele

Closing as we get these already.

TatianaKapos avatar Dec 21 '22 20:12 TatianaKapos