Eine gut strukturierte React Native-App erfordert Code-Organisation, Separation of Concerns (UI, Logik, Daten), die Wahl von State Management und eine Struktur für Wartbarkeit, Testbarkeit und Skalierbarkeit. Gute Architektur ist wichtig, wenn Apps wachsen.
Projektorganisation
Organize code by FEATURE or by TYPE (feature-based scales better for large apps):
src/features/auth/{components, screens, hooks, api, store}/ (feature-based)
OR src/{components, screens, hooks, services, store, navigation, utils}/ (type-based)
→ Keep related code together; separate reusable from feature-specific code.
