Closed jayohms closed 4 months ago
Ha, I was thinking this same thing a few sleepless nights ago!
The tricky part is that this currently acts to bootstrap Hotwire Native. It sets the default view controller, the user agent, etc. But I think that that is not cruft, left around from when we had more clear separation between the Hotwire wrapper, Turbo, and Strada.
I think I can refactor this to only have the call required when you're actually using bridge components. I'll report back.
Ah, so currently the registerBridgeComponents()
call is doing more behind the scenes? If so, yeah we should fix that so those pieces aren't a side effect of another optional, unrelated call.
On the Android side, we have defaults setup for those automatically:
Now that we only have one library that was much cleaner then I expected!
Closed via #12 and Hotwire Native iOS #18.
On the iOS Getting Started page, we show this code block:
Can we completely remove the empty
Hotwire.registerStradaComponents([])
line? If you're not registering any bridge components the default (empty) configuration should work out-of-the-box and we can reveal this code in theBridge Components
section instead.