Skip to content

Send onScrollEnded Event to native driver#45382

Closed
cipolleschi wants to merge 1 commit into
facebook:mainfrom
cipolleschi:export-D59459989
Closed

Send onScrollEnded Event to native driver#45382
cipolleschi wants to merge 1 commit into
facebook:mainfrom
cipolleschi:export-D59459989

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

Summary:
This change is the first step to tr and solve the pressability's onTouchMove issue with animation driven natively in the New Architecture.

The idea is to trigger a special event from native to let JS know that a scroll event has ended (scrollViewDidEndDragging or scrollViewdidEndDecelerating).

When this happens, we need to send an event to JS to let him know that it has to sync the Native Tree with the Shadow Tree.

Step 2 is to connect Native with JS

Changelog:

[iOS][Added] - Send onScrollEnded event to NativeTurboAnimatedModule

Differential Revision: D59459989

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jul 11, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59459989

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Jul 11, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 21,353,607 -11
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 24,549,460 +8
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: c1b4133
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59459989

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59459989

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59459989

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jul 15, 2024
Summary:
Pull Request resolved: facebook#45382

This change is the first step to tr and solve the pressability's `onTouchMove` issue with animation driven natively in the New Architecture.

 The idea is to trigger a special event from native to let JS know that a scroll event has ended (`scrollViewDidEndDragging` or `scrollViewdidEndDecelerating`).

When this happens, we need to send an event to JS to let him know that it has to sync the Native Tree with the Shadow Tree.

Step 2 is to connect Native with JS

## Changelog:
[iOS][Added] - Send onScrollEnded event to NativeTurboAnimatedModule

Differential Revision: D59459989

Reviewed By: sammy-SC
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59459989

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59459989

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59459989

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jul 17, 2024
Summary:
Pull Request resolved: facebook#45382

This change is the first step to tr and solve the pressability's `onTouchMove` issue with animation driven natively in the New Architecture.

 The idea is to trigger a special event from native to let JS know that a scroll event has ended (`scrollViewDidEndDragging` or `scrollViewdidEndDecelerating`).

When this happens, we need to send an event to JS to let him know that it has to sync the Native Tree with the Shadow Tree.

Step 2 is to connect Native with JS

## Changelog:
[iOS][Added] - Send onScrollEnded event to NativeTurboAnimatedModule

Differential Revision: D59459989

Reviewed By: sammy-SC
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59459989

Summary:
Pull Request resolved: facebook#45382

This change is the first step to tr and solve the pressability's `onTouchMove` issue with animation driven natively in the New Architecture.

 The idea is to trigger a special event from native to let JS know that a scroll event has ended (`scrollViewDidEndDragging` or `scrollViewdidEndDecelerating`).

When this happens, we need to send an event to JS to let him know that it has to sync the Native Tree with the Shadow Tree.

Step 2 is to connect Native with JS

## Changelog:
[iOS][Added] - Send onScrollEnded event to NativeTurboAnimatedModule

Reviewed By: sammy-SC

Differential Revision: D59459989
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59459989

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 17, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 7af7432.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cipolleschi in 7af7432

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants