Example of calling swift code from RN
This commit is contained in:
parent
1a9884e0e9
commit
151ed6d78b
12 changed files with 86 additions and 6 deletions
|
@ -16,7 +16,7 @@ final class SharedState: ObservableObject {
|
|||
private let emitter = EventEmitter.sharedInstance
|
||||
|
||||
// SwiftUI => RN => SwiftUI
|
||||
@Published var text1: String = ""
|
||||
@Published var message: String = ""
|
||||
|
||||
func send(message: String) {
|
||||
emitter.send(message: message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue