Files
zeekay 55a7f247ca init: extract wallet from lux/exchange monorepo
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config,
utilities, sessions, gating, notifications, analytics, eslint-config,
prices) into a standalone pnpm workspace.  Resolves merge conflict
markers in extension and mobile package.json files, strips build
artifacts (.wxt, .output, Pods).
2026-04-11 01:59:19 -07:00

41 lines
2.2 KiB
Objective-C

//
// RNSwiftUI-Bridging-Header.h
// Lux
//
// Created by Thomas Thachil on 8/3/22.
//
//
#ifndef RNSwiftUI_Bridging_Header_h
#define RNSwiftUI_Bridging_Header_h
#import "React/RCTViewManager.h"
#import "React/RCTConvert.h"
#import "React/RCTComponentData.h"
#import "React/RCTBridgeModule.h"
#import "React/UIView+React.h"
#define RCT_EXPORT_SWIFTUI_PROPERTY(name, type, proxyClass) \
RCT_CUSTOM_VIEW_PROPERTY(name, type, proxyClass) { \
NSMutableDictionary *storage = [proxyClass storage]; \
proxyClass *proxy = storage[[NSValue valueWithNonretainedObject:view]]; \
proxy.name = [RCTConvert type:json]; \
}
#define RCT_EXPORT_SWIFTUI_CALLBACK(name, type, proxyClass) \
RCT_REMAP_VIEW_PROPERTY(name, __custom__, type) \
- (void)set_##name:(id)json forView:(UIView *)view withDefaultView:(UIView *)defaultView RCT_DYNAMIC { \
NSMutableDictionary *storage = [proxyClass storage]; \
proxyClass *proxy = storage[[NSValue valueWithNonretainedObject:view]]; \
void (^eventHandler)(NSDictionary *event) = ^(NSDictionary *event) { \
RCTComponentEvent *componentEvent = [[RCTComponentEvent alloc] initWithName:@""#name \
viewTag:view.reactTag \
body:event]; \
[self.bridge.eventDispatcher sendEvent:componentEvent]; \
}; \
proxy.name = eventHandler; \
}
#endif /* RNSwiftUI_Bridging_Header_h */