A cross-platform codebase is one shared source base that builds a single app for multiple target platforms. For most installable applications, this avoids maintaining separate versions while retaining a path to platform-specific variations when requirements demand them. section 1.3
Choose the implementation approach by weighing practical trade-offs:
- Use a web app wrapped in an installable binary when web technology is the preferred foundation; the app still runs and renders through a web view, with associated performance and threading limitations. section 1.3
- Use a single codebase that builds native apps when multithreading, performance, and full access to native platform APIs matter. section 1.3
- .NET MAUI, React Native, and Flutter represent the native single-codebase approach; .NET MAUI can still support platform-specific versions when necessary. section 1.3
One DatePicker, two platforms
A .NET MAUI DatePicker can run on Android and Windows from the same code, with each version feeling appropriate to its platform without additional modification.
