Skip to content

Conversation

@tjzel
Copy link
Collaborator

@tjzel tjzel commented May 8, 2025

Summary

QoL CI since now we keep some scripts etc. in the root. I also fixed problems found by yarn lint and yarn format and added necessary configs.

Test plan

🪨

@tjzel tjzel requested a review from piaskowyk May 8, 2025 14:18
@tjzel tjzel requested review from kmagiera and tomekzaw as code owners May 8, 2025 14:18
@tjzel tjzel requested a review from patrycjakalinska May 9, 2025 12:32
Copy link
Contributor

@patrycjakalinska patrycjakalinska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgmt 🪨

@tjzel tjzel added this pull request to the merge queue May 9, 2025
Merged via the queue into main with commit d40eb1f May 9, 2025
15 checks passed
@tjzel tjzel deleted the @tjzel/github-actions/monorepo-static branch May 9, 2025 15:05
tjzel added a commit that referenced this pull request May 9, 2025
refactor(Worklets): jsiWorkletsModuleProxy + ios

feat(Worklets): runOnUIAsync (#7469)

This PR adds a `runOnUIAsync` function.
A function that schedules a worklet on the UI Runtime, to be executed on
the UI thread. It returns a Promise of the worklet's return value. The
Promise is resolved asynchronously, not immediately after the callback
execution.

Example usage :
```js
import { runOnUIAsync } from 'react-native-worklets';

// RN Runtime, JS thread

const result: Promise<number> = runOnUIAsync((): number => {
  return 42;
});

await result; // 42
```

`runOnUIAsync` example :
<video
src="https://github.com/user-attachments/assets/8c72548d-6d41-43d6-809c-3f27f13d664f"
/>

fix: ensure last[propName] is defined in style updater (#7485)

<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

Ensure that `last[propName]` is initialised to fix an exception on web.
This bug was introduced by changes in #6749.

I noticed this issue after upgrading to the latest version of
react-native-reanimated. In my case, the library was trying to index
`last['transform']` which didn't exist for whatever reason.

<img width="573" alt="Screenshot 2025-05-08 at 16 23 04"
src="https://github.com/user-attachments/assets/1262b09a-600d-4ffb-8aa2-a02d8bc9e97e"
/>

<img width="676" alt="Screenshot 2025-05-08 at 16 24 29"
src="https://github.com/user-attachments/assets/d17ccde5-744f-4e57-b6cd-4100a88acdae"
/>

feat(CI): monorepo static checks (#7484)

QoL CI since now we keep some scripts etc. in the root. I also fixed
problems found by `yarn lint` and `yarn format` and added necessary
configs.

🪨

refactor(Worklets)(makeShareableClone): add makeShareableString (#7481)

The first in a series of PRs that are intended to refactor the logic of
the `makeShareableClone` function.
The current implementation does not have a single source of truth, as we
have two type checking logics for the passed value, one on the `JS` side
and one on the `Cpp` side.
The idea of the refactor is to implement one source of truth on the `JS`
side and call the corresponding method on the `Cpp` side e.g:
```js
if (typeof value === ‘string’) {
  return global._makeShareableString(value);
}
```

In addition, in this PR I have rewritten the `Shareables` example to
make it more readable and easier to use.
`Shareables` example
<video
src="https://github.com/user-attachments/assets/5d61009d-e31b-44fc-b4fd-c21a8c417612"
/>

chore: fix linting
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.

3 participants