Skip to content

Commit 9895af6

Browse files
authored
refactor(Worklets): remove public header dir (#8678)
## Summary After some thought we want to handle public headers differently than with an artificial directory. In future PRs we'll try to public headers available as `<RNWorklets/PublicHeader.h>`. ## Test plan https://grep.app/search?q=Public%2FAsyncQueue
1 parent 632ecb2 commit 9895af6

File tree

8 files changed

+7
-8
lines changed

8 files changed

+7
-8
lines changed

docs/docs-worklets/docs/threading/scheduleOnRuntime.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Arguments to the function you want to execute on the [Worker Runtime](/docs/fund
4848
## Remarks
4949

5050
- The worklet is scheduled on the Worker Runtime's [Async
51-
Queue](https://github.com/software-mansion/react-native-reanimated/blob/main/packages/react-native-worklets/Common/cpp/worklets/Public/AsyncQueue.h)
51+
Queue](https://github.com/software-mansion/react-native-reanimated/blob/main/packages/react-native-worklets/Common/cpp/worklets/RunLoop/AsyncQueue.h)
5252
- The worklet cannot be scheduled on the Worker Runtime from [UI
5353
Runtime](/docs/fundamentals/runtimeKinds#ui-runtime) or another [Worker
5454
Runtime](/docs/fundamentals/runtimeKinds#worker-runtime), unless the [Bundle Mode](/docs/experimental/bundleMode) is enabled.

docs/docs-worklets/src/theme/TOCItems/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { TOCItems } from '@swmansion/t-rex-ui';
22

3-
43
export default function TOCItemsWrapper(props) {
54
return (
65
<>

packages/react-native-worklets/Common/cpp/worklets/RunLoop/AsyncQueueImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#include <jsi/jsi.h>
4-
#include <worklets/Public/AsyncQueue.h>
4+
#include <worklets/RunLoop/AsyncQueue.h>
55
#include <worklets/Tools/UIScheduler.h>
66

77
#include <atomic>

packages/react-native-worklets/Common/cpp/worklets/RunLoop/EventLoop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#include <jsi/jsi.h>
4-
#include <worklets/Public/AsyncQueue.h>
4+
#include <worklets/RunLoop/AsyncQueue.h>
55

66
#include <atomic>
77
#include <condition_variable>

packages/react-native-worklets/Common/cpp/worklets/WorkletRuntime/WorkletRuntime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <jsireact/JSIExecutor.h>
66
#include <react/debug/react_native_assert.h>
77

8-
#include <worklets/Public/AsyncQueue.h>
8+
#include <worklets/RunLoop/AsyncQueue.h>
99
#include <worklets/RunLoop/AsyncQueueImpl.h>
1010
#include <worklets/RunLoop/EventLoop.h>
1111
#include <worklets/SharedItems/Serializable.h>

packages/react-native-worklets/src/runtimes.native.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export function createWorkletRuntime(
115115
* for more information about the different runtime kinds.
116116
*
117117
* - The worklet is scheduled on the Worker Runtime's [Async
118-
* Queue](https://github.com/software-mansion/react-native-reanimated/blob/main/packages/react-native-worklets/Common/cpp/worklets/Public/AsyncQueue.h)
118+
* Queue](https://github.com/software-mansion/react-native-reanimated/blob/main/packages/react-native-worklets/Common/cpp/worklets/RunLoop/AsyncQueue.h)
119119
* - The function cannot be scheduled on the Worker Runtime from [UI
120120
* Runtime](https://docs.swmansion.com/react-native-worklets/docs/fundamentals/runtimeKinds#ui-runtime)
121121
* or another [Worker

packages/react-native-worklets/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export type WorkletRuntimeConfig = {
130130
* An optional custom queue to be used for scheduling worklets.
131131
*
132132
* The queue has to implement the C++ `AsyncQueue` interface from
133-
* `<worklets/Public/AsyncQueue.h>`.
133+
* `<worklets/RunLoop/AsyncQueue.h>`.
134134
*/
135135
customQueue?: never;
136136
}
@@ -144,7 +144,7 @@ export type WorkletRuntimeConfig = {
144144
* An optional custom queue to be used for scheduling worklets.
145145
*
146146
* The queue has to implement the C++ `AsyncQueue` interface from
147-
* `<worklets/Public/AsyncQueue.h>`.
147+
* `<worklets/RunLoop/AsyncQueue.h>`.
148148
*/
149149
customQueue?: object;
150150
}

0 commit comments

Comments
 (0)