guardia-messenger/node_modules/expo-modules-core/ios/RCTComponentData+Privates.h
DESKTOP-TKLFCPRython f29f525c77 refactor: 101.79.17.164 → zioinfo.co.kr 전체 도메인 변환 + Manager UI 배포
- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스)
- Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포
- 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 10:09:17 +09:00

30 lines
1.3 KiB
Objective-C

// Copyright 2021-present 650 Industries. All rights reserved.
#import <React/RCTComponent.h>
#import <React/RCTComponentData.h>
typedef void (^RCTPropBlockAlias)(id<RCTComponent> _Nonnull view, id _Nullable json);
@interface RCTComponentData (Privates)
- (nonnull RCTPropBlockAlias)createPropBlock:(nonnull NSString *)name isShadowView:(BOOL)isShadowView;
@end
/**
This is a compatible adapter for Swift `ComponentData` to access react-native's `RCTComponentData`.
When running in react-native new architecture mode, the `eventDispatcher` is actually null.
however the`RCTComponentData` still expects it's nonnull because of the `NS_ASSUME_NONNULL_BEGIN`
https://github.com/facebook/react-native/blob/ea4724b37c9f78bd33daab547d6cc4f8b7f7dd81/packages/react-native/React/Views/RCTComponentData.h#L19-L35.
Swift will have a runtime exception from the implicitly unwrapping.
This compatible adapter basically allows the `eventDispatcher` to be nullable.
TODO: We should propose the fix to upstream and remove this adapter when dropping SDK 49.
*/
@interface RCTComponentDataSwiftAdapter : RCTComponentData
- (nonnull instancetype)initWithManagerClass:(nonnull Class)managerClass
bridge:(nonnull RCTBridge *)bridge
eventDispatcher:(nullable id<RCTEventDispatcherProtocol>)eventDispatcher;
@end