August 2025
Intermediate to advanced
270 pages
6h 16m
English
We’ll cover the first technique in our list—dynamically setting the native title via HTML—by way of addressing the repetitive Hiking Journal text at the top center of the screen. This title is most similar to an <h1> tag on the web, a string that represents the content on the screen. Right now, every screen shows the same text at the top. It would look a lot nicer, and would actually be more useful, if that title displayed something a bit more dynamic.
The title lives inside the native navigation bar, highlighted in the left image that follows. The web content rendered from the server is highlighted on the right.
Under the hood, Hotwire Native sets this title element to the HTML’s <title> tag when the ...
Read now
Unlock full access