TIL details on how Hotwire Native works. I dug into the code to read about how they share the single instance of the webview across multiple view controllers (stack screens). Turns out, they have almost the exact same strategy as Shopify’s Mobile Bridge.
There doesn’t seem to be a good option out there for React Native, since React’s fundamental model is that it wants to control elements within its virtual tree.
So I’m setting out to build my first Expo Native Module (with the help of Claude) to try to pull some of this off. I want the same kind of webview performance and interactivity these other firms have been able to achieve. I’m sure it can be done with a couple hundred lines of native code