Hello for SwiftUI

This commit is contained in:
Artur Gurgul 2025-08-02 13:00:06 +02:00
parent 14aa6a777b
commit 4e4a92c2a3
5 changed files with 75 additions and 33 deletions

View file

@ -0,0 +1,24 @@
//
// RootView.swift
// RNPlayground
//
// Created by Artur Gurgul on 02/08/2025.
//
import SwiftUI
struct RootView: View {
private let sharedState: SharedState
init(_ sharedState: SharedState) {
self.sharedState = sharedState
}
var body: some View {
VStack {
Text("Hello to SwiftUI!")
if let reactNativeFactory = sharedState.reactNativeFactory {
UIReactNativeView(reactNativeFactory)
}
}
}
}