Skip to content
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

Fix scrollTo on Fabric #4378

Merged
merged 3 commits into from
Apr 20, 2023
Merged

Fix scrollTo on Fabric #4378

merged 3 commits into from
Apr 20, 2023

Conversation

piaskowyk
Copy link
Member

Summary

The flag _IS_FABRIC is only defined on React Runtime, we can't use them on Reanimated Runtime. I removed the check of this flag for Reanimated Runtime because this one prevents any _dispatchCommand call.

Test plan

Run any scrollTo example on Fabric

@piaskowyk piaskowyk requested review from tomekzaw and tjzel April 19, 2023 20:38
@piaskowyk piaskowyk added this pull request to the merge queue Apr 20, 2023
Merged via the queue into main with commit 87fb9c6 Apr 20, 2023
@piaskowyk piaskowyk deleted the @piaskowyk/fix-scrollto-fabric branch April 20, 2023 08:15
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
## Summary

The flag `_IS_FABRIC` is only defined on React Runtime, we can't use
them on Reanimated Runtime. I removed the check of this flag for
Reanimated Runtime because this one prevents any `_dispatchCommand`
call.

## Test plan

Run any scrollTo example on Fabric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants