Skip to content

Compatibility with worklets 0.12.x #1250

Description

@xgiovio

Description

❌ (node_modules/react-native-audio-api/common/cpp/audioapi/core/utils/worklets/WorkletsRunner.cpp:18:18)

16 | #if RN_AUDIO_API_ENABLE_WORKLETS
17 | unsafeRuntimePtr = &strongRuntime->getJSIRuntime();

18 | strongRuntime->executeSync([this, shareableWorklet](jsi::Runtime &rt) -> jsi::Value {
| ^ no member named 'executeSync' in 'worklets::WorkletRuntime'
19 | /// Placement new to avoid dynamic memory allocation
20 | new (reinterpret_cast<jsi::Function *>(&unsafeWorklet))
21 | jsi::Function(shareableWorklet->toJSValue(*unsafeRuntimePtr)

❌ (node_modules/react-native-audio-api/common/cpp/audioapi/core/utils/worklets/WorkletsRunner.cpp:65:25)

63 | }
64 | #if RN_AUDIO_API_ENABLE_WORKLETS

65 | return strongRuntime->executeSync(std::move(job));
| ^ no member named 'executeSync' in 'worklets::WorkletRuntime'
66 | #else
67 | return std::nullopt;
68 | #endif

Steps to reproduce

user latest react-native-audio-api with worklets 0.12.x

Snack or a link to a repository

This is not needed

React Native Audio API version

latest

React Native version

0.86.2

Platforms

iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

Debug app & dev bundle

Device

None

Device model

iphone 17 pro max

Acknowledgements

Yes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions