Hello for SwiftUI
This commit is contained in:
parent
14aa6a777b
commit
4e4a92c2a3
5 changed files with 75 additions and 33 deletions
24
ios/Native/Application/RootView.swift
Normal file
24
ios/Native/Application/RootView.swift
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue