25 lines
449 B
Swift
25 lines
449 B
Swift
|
//
|
||
|
// 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)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|