You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable react-native-macos+0.79.0.patch - you can move it from the folder, or remove it.
yarn install
Install pods
Build the app
You will see Bokeh (a lot of circles) that will not move. (And they should).
Expected Behavior
To see expected behavior, apply the react-native-macos+0.79.0.patch, and run the app. The Bokeh (circles) will move, as its expected behavior.
expected.mov
Actual Behavior
Bokeh (the circles) do not move - the animation is not progressing.
bug.mov
The main culprit of this is usage of a depracated function CVDisplayLinkGetCurrentTime in RCTPlatformDisplayLink.m. Because it is depracated it now returns 0 therefore timestamp always return 0.
timestamp is used in Reanimated for animations to work as it signals the next frame has come, and the animation progress accordingly. With the same timestamp = 0 given to Reanimated each time the animation cannot calculate and apply progress.
Reproduction is in repro folder. The repo includes a patch for worklets, which is necessary for the app to function correctly since support for macOS in Reanimated is still under development.
The repro also includes patch for react-native-macos - it contains the proposed fix.
Additional context
To see the bug - disablereact-native-macos patch.
To see expected behavior - enable `react-native-macos patch.