Skip to content

Commit 67d3e3b

Browse files
committed
Fix RNTesterUnitTests build by importing react/bridging/ArrayBuffer.h
RCTTurboModuleArrayBufferTests.mm uses detail::OwnedBytesBuffer, which lives in facebook::react::detail in react/bridging/ArrayBuffer.h, but never imports that header. In the OSS pods build (yarn test-ios / scripts/objc-test.sh) nothing pulls it in transitively, so detail resolves to facebook::jsi::detail and RNTesterUnitTests fails to compile before running a single test. The file already has "using namespace facebook::react", so the import is the whole fix.
1 parent 042833e commit 67d3e3b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/rn-tester/RNTesterUnitTests/RCTTurboModuleArrayBufferTests.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#import <ReactCommon/RCTTurboModule.h>
1212
#import <ReactCommon/TestCallInvoker.h>
1313
#import <hermes/hermes.h>
14+
#import <react/bridging/ArrayBuffer.h>
1415

1516
#import <list>
1617
#import <vector>

0 commit comments

Comments
 (0)