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

Enhancement for all touch related issues that are implemented in native side

Open HariniMalothu17 opened this issue 6 months ago • 1 comments

Currently, all touch-related events like onKeyUp, onKeyDown, onFocus, onBlur, and other touch handlers are being emitted from the native side. As part of future improvements, we plan to shift these to be handled through Pressability in JavaScript instead. https://github.com/facebook/react-native/blob/33aa7b91617bb6e2b9689850e8740c97e01464de/packages/react-native/Libraries/Components/TextInput/TextInput.js#L619

HariniMalothu17 avatar Jun 18 '25 08:06 HariniMalothu17

Based on this comment: https://github.com/microsoft/react-native-windows/pull/14784#issuecomment-2980639169

We shouldn't be emitting these events from native.

This looks like onPressIn was implemented incorrectly. Instead we should be removing these native events, and determining why the usePressability was/is not firing the onPressIn/Out on the TextInput.

My understanding is that this issue is to track fixing the implementation of onPressIn. For onPressOut it looks like the PR is blocked waiting to resolve this: https://github.com/microsoft/react-native-windows/pull/14784

chrisglein avatar Jun 19 '25 16:06 chrisglein