Commit 354cdcb
committed
fix(Worklets): networking in Bundle Mode on some setups
Fix the folly/JSI header imports in WorkletsNetworking.mm so they
resolve across setups: import folly convert via `react/utils/FollyConvert.h`
(adding the React-utils iOS platform header path in the podspec),
`jsi/JSIDynamic.h` directly, and `ReactCommon/RCTTurboModule.h` instead of
`FBReactNativeSpec`. Drop the now-unused `FBReactNativeSpec` import from
WorkletsModule.mm.
Also eagerly `require` TurboModuleRegistry in `initializeNetworking` so
`globalThis.TurboModules` is populated before it is used.1 parent ee9d9e5 commit 354cdcb
4 files changed
Lines changed: 7 additions & 5 deletions
File tree
- packages/react-native-worklets
- apple/worklets/apple
- Networking
- src/bundleMode
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
0 commit comments