30 lines
581 B
Swift
30 lines
581 B
Swift
|
//
|
||
|
// UIReactNativeView.swift
|
||
|
// RNPlayground
|
||
|
//
|
||
|
// Created by Artur Gurgul on 01/08/2025.
|
||
|
//
|
||
|
|
||
|
import UIKit
|
||
|
import SwiftUI
|
||
|
import React
|
||
|
import React_RCTAppDelegate
|
||
|
import ReactAppDependencyProvider
|
||
|
|
||
|
|
||
|
struct UIReactNativeView: UIViewRepresentable {
|
||
|
var factory: RCTReactNativeFactory
|
||
|
|
||
|
init(_ reactNativeFactory: RCTReactNativeFactory) {
|
||
|
factory = reactNativeFactory
|
||
|
}
|
||
|
|
||
|
func makeUIView(context: Context) -> UIView {
|
||
|
return factory.rootViewFactory.view(withModuleName: "RNPlayground")
|
||
|
}
|
||
|
|
||
|
func updateUIView(_ uiView: UIView, context: Context) {
|
||
|
|
||
|
}
|
||
|
}
|