25 lines
475 B
Swift
25 lines
475 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 {
|
|
ToolboxHeader()
|
|
if let reactNativeFactory = sharedState.reactNativeFactory {
|
|
UIReactNativeView(reactNativeFactory)
|
|
}
|
|
}
|
|
.environmentObject(sharedState)
|
|
}
|
|
}
|