August 2025
Intermediate to advanced
270 pages
6h 16m
English
Up next, we’ll walk through how to customize the bridge component in the following ways:
On the web, we used send() to pass a message to native code. To pass a message from native code to the web, we have reply(to:). Call this via a UIAction, which fires when the button is tapped.
| | import HotwireNative |
| | import UIKit |
| | |
| | class ButtonComponent: BridgeComponent { |
| | override class var name: String { "button" } |
| | |
| | override func onReceive(message: Message) { |
| » | let action = UIAction(title: ... |
Read now
Unlock full access