Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/react-native-worklets/RNWorklets.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Pod::Spec.new do |s|

s.dependency 'React-jsi'
s.dependency 'React-hermes'

s.pod_target_xcconfig = {
"USE_HEADERMAP" => "YES",
"DEFINES_MODULE" => "YES",
Expand All @@ -70,6 +70,7 @@ Pod::Spec.new do |s|
'"$(PODS_ROOT)/DoubleConversion"',
'"$(PODS_ROOT)/Headers/Private/React-Core"',
'"$(PODS_ROOT)/Headers/Private/Yoga"',
'"$(PODS_CONFIGURATION_BUILD_DIR)/React-utils/React_utils.framework/Headers/react/utils/platform/ios"',
].join(' '),
"FRAMEWORK_SEARCH_PATHS" => '"${PODS_CONFIGURATION_BUILD_DIR}/React-hermes"',
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

#import <mutex>

#import <FBReactNativeSpec/FBReactNativeSpec.h>
#import <React-Core/React/RCTFollyConvert.h>
#import <React-jsi/jsi/JSIDynamic.h>
#import <ReactCommon/RCTTurboModule.h>
#import <react/utils/FollyConvert.h>
#import <jsi/JSIDynamic.h>
#import <React/RCTAssert.h>
#import <React/RCTConvert.h>
#import <React/RCTHTTPRequestHandler.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#import <React/RCTCallInvoker.h>

#ifdef WORKLETS_FETCH_PREVIEW_ENABLED
#import <FBReactNativeSpec/FBReactNativeSpec.h>
#import <React/RCTNetworking.h>
#import <ReactCommon/RCTTurboModule.h>
#import <worklets/apple/Networking/WorkletsNetworking.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* The NetworkingModule itself is injected via C++.
*/
export function initializeNetworking() {
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('react-native/Libraries/TurboModule/TurboModuleRegistry');
const TurboModules = globalThis.TurboModules;

TurboModules.set('FileReaderModule', makeMockTurboModule('FileReaderModule'));
Expand Down
Loading