-
Notifications
You must be signed in to change notification settings - Fork 603
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
Copy/Paste fixes #5953
Copy/Paste fixes #5953
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand the change made to the GestureHandlerV1Button that prevents us from being able to pass a worklet function directly to the onPressWorklet prop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding a note from Christian: test against when numbers have commas
+1, would rather we address the underlying issue making the extra wrapper necessary, if it is actually necessary currently |
it is not being used so I removed the event arg on gesture handler v1 callbacks |
onStart: e => { | ||
if (onPressStartWorklet) onPressStartWorklet(e); | ||
onStart: () => { | ||
if (onPressStartWorklet) onPressStartWorklet(); | ||
}, | ||
onActive: e => { | ||
if (onPressWorklet) onPressWorklet(e); | ||
if (onPressJS) runOnJS(onPressJS)(e); | ||
onActive: () => { | ||
if (onPressWorklet) onPressWorklet(); | ||
if (onPressJS) runOnJS(onPressJS)(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these e
were not used anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌮
Fixes APP-####
What changed (plus any additional context for devs)
inputMethod
to the right field on pasteonPress
calls the handler with theevent
and this event was being passed as arg to those functions, making they misbehaveScreen recordings / screenshots
What to test