Overview of the Native UI Plugin Rewrite
mainThe native-ui plugin (formerly compose-ui) is undergoing a rewrite to provide a consistent, themeable, and accessible UI kit that renders natively on both iOS and Android. The rewrite moves away from hand-rolled styling toward using native platform primitives and a centralized theming system.
Key improvements in the new architecture include:
- Native Primitives: Using actual platform components (e.g., Android
OutlinedTextField) instead of hand-rolled styled text. - Theming System: A centralized
Themeclass and configuration that allows consumer apps to set brand colors that propagate across all components. - Type Safety: Moving away from 'stringly-typed' props across the bridge to prevent silent failures.
- Accessibility (a11y): Integration of roles, labels, and contrast validation.
- Two-way Binding: Improved state synchronization using the
native:modeldirective.