-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: Add working [email protected] #8248
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
feat: Add working [email protected] #8248
Conversation
packages/react-native-worklets/apple/worklets/apple/AnimationFrameQueue.mm
Outdated
Show resolved
Hide resolved
packages/react-native-worklets/apple/worklets/apple/AnimationFrameQueue.mm
Show resolved
Hide resolved
packages/react-native-worklets/apple/worklets/apple/AnimationFrameQueue.mm
Show resolved
Hide resolved
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.
Looks good!
There are just a few minor issues. I will approve the PR once you fix them.
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.
Thank you for addressing all my comments. LGTM after all these changes!
## Summary CI to check roby and cocoapods the macos won't pass as correct version of cocoapods are introduced in #8248 ## Test plan
packages/react-native-worklets/apple/worklets/apple/AnimationFrameQueue.mm
Outdated
Show resolved
Hide resolved
packages/react-native-worklets/apple/worklets/apple/AnimationFrameQueue.mm
Outdated
Show resolved
Hide resolved
packages/react-native-worklets/apple/worklets/apple/AnimationFrameQueue.mm
Outdated
Show resolved
Hide resolved
## Summary Currently, animating props synchronously is broken on React Native 0.80 or older because `schedulerDidSynchronouslyUpdateViewOnUIThread:props:` method that we're using was added facebook/react-native#51470 in which was released in React Native 0.81. In #8248, @patrycjakalinska added ifdefs to disable this flow on `react-native-macos` but it is not a problem with macOS itself but rather with the version of React Native (currently, `macos-example` runs on 0.79). This PR fixes animating props synchronously on iOS on React Native 0.80 and older. ## Test plan
Summary
This PR brings back to life macos-example. It's working on the latest
react-native-macos
stable version -0.79
. The version is patched because of usage of depracated function that broke animations. I've already opened a PR inreact-native-macos
repo, and when (and if) it will be resolved we should update deps accordingly.Screen.Recording.2025-09-30.at.08.33.35.mov
Test plan
Run macos-example and check some examples.