How thinkific/mobile-test works
Project type and purpose
• This is a mobile-only, React Native “learning platform” app built with Expo and Expo Router.
• Its purpose is to let learners browse and view courses (catalog, details), handle theming (light/dark), and demo navigation via file-based routing.
File structure
• app/
• Implements screens via Expo Router (file-based routing).
• (tabs)/index.tsx & explore.tsx are the tab navigator’s home/profile screens.
• course/[id].tsx is the dynamic course-detail page.
• _layout.tsx files define shared navigators or wrappers.
• components/
• Reusable UI pieces (CourseCard, themed-text/view, collapsible UI).
• services/
• courseService.ts abstracts data fetching (API or mocks).
• courseMocks.ts holds mock data.
• __tests__/ for unit tests on service logic.
• hooks/
• constants/
• types/
• Shared TypeScript interfaces: course.ts, navigation.ts.
• assets/images/ for static image assets.
• Configuration (babel.config.js, tsconfig.json), ESLint, Jest config, and scripts/reset-project.js.
README for additional insights
• Emphasizes debugging, performance fixes, refactoring, architectural discussions.
• Lists tech stack: React Native, Expo, Expo Router, TypeScript, Jest, RN Testing Library.
• Mentions core features: Course Catalog, Course Details, User Profile, Theming.
Detail
• Don’t collapse the layout wrappers (_layout.tsx) and dynamic routes—they’re central to navigation.
• Custom hooks as first-class architectural elements because they handle theming logic.
• Tests as a separate slice to highlight test coverage areas.