18 lines
330 B
Swift
18 lines
330 B
Swift
//
|
|
// BaseButton.swift
|
|
// RNPlayground
|
|
//
|
|
// Created by Artur Gurgul on 02/08/2025.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct BaseButton: View {
|
|
@EnvironmentObject var sharedState: SharedState
|
|
|
|
var body: some View {
|
|
Button("SwiftUI Button") {
|
|
sharedState.text1 = "Clicked in SwiftUI button that was created in RN"
|
|
}
|
|
}
|
|
}
|