Add emitter so I can now send events to the RN core
This commit is contained in:
parent
4e4a92c2a3
commit
7177b9e927
7 changed files with 111 additions and 14 deletions
22
ios/Native/Application/Views/ToolboxHeader.swift
Normal file
22
ios/Native/Application/Views/ToolboxHeader.swift
Normal file
|
@ -0,0 +1,22 @@
|
|||
//
|
||||
// ToolboxHeader.swift
|
||||
// RNPlayground
|
||||
//
|
||||
// Created by Artur Gurgul on 02/08/2025.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct ToolboxHeader: View {
|
||||
@EnvironmentObject var sharedState: SharedState
|
||||
|
||||
var body: some View {
|
||||
HStack {
|
||||
Text("Actions")
|
||||
Button("Make it blue") {
|
||||
print("Making it blue")
|
||||
sharedState.send(message: "hello from Swift!")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue