I would additionally urge caution here, because once you introduce any sort of knowledge like this, it becomes very easy for you to wake up one day and discover that you don’t actually have one codebase - you have two or three or eight codebases that are snarled together in a forest of conditionals.
IMHO, the maintainability of hybrid apps is highly dependent on what percentage of the code has no clue how it’s deployed.