Skip to content

Conversation

@tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented May 23, 2024

Summary

Here's the current implementation of Shareable::getJSValue:

virtual jsi::Value getJSValue(jsi::Runtime &rt) {
return toJSValue(rt);
}

This PR removes getJSValue in favor of toJSValue as well as updates all usages.

Test plan

Just run the Example app.

@tomekzaw tomekzaw requested review from kmagiera and piaskowyk May 23, 2024 15:17
@tomekzaw tomekzaw added this pull request to the merge queue Jun 20, 2024
Merged via the queue into main with commit 1128a34 Jun 20, 2024
@tomekzaw tomekzaw deleted the @tomekzaw/toJSValue branch June 20, 2024 12:17
r0h0gg6 pushed a commit to r0h0gg6/react-native-reanimated that referenced this pull request Jul 28, 2025
## Summary

Here's the current implementation of `Shareable::getJSValue`:


https://github.com/software-mansion/react-native-reanimated/blob/e661676f2dcb8feaf00bf7b9be29ef9d84c673df/Common/cpp/SharedItems/Shareables.h#L91-L93

This PR removes `getJSValue` in favor of `toJSValue` as well as updates
all usages.

## Test plan

Just run the Example app.
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