2025-08-02 16:27:14 +02:00
|
|
|
//
|
2025-08-03 10:01:13 +02:00
|
|
|
// BaseButtonManager.swift
|
2025-08-02 16:27:14 +02:00
|
|
|
// RNPlayground
|
|
|
|
//
|
|
|
|
// Created by Artur Gurgul on 02/08/2025.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import React
|
2025-08-03 10:01:13 +02:00
|
|
|
import SwiftUI
|
2025-08-02 16:27:14 +02:00
|
|
|
|
2025-08-03 10:01:13 +02:00
|
|
|
@objc(BaseButtonManager)
|
|
|
|
class BaseButtonManager: RCTViewManager {
|
2025-08-02 16:27:14 +02:00
|
|
|
override func view() -> UIView! {
|
2025-08-03 10:01:13 +02:00
|
|
|
return UIHostingController(rootView: BaseButton()).view
|
2025-08-02 16:27:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
override static func requiresMainQueueSetup() -> Bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|