Teaching materials for an introductory lesson on React Native with TypeScript (~1 hour 45 minutes). Covers core concepts, then walks through building a todo list app with AI-powered todo generation.
lesson-plan.md— Full lesson plan covering React Native concepts and a guided hands-on projectslides/— Reveal.js presentation slidestodo-app/— Hands-on demo app: a React Native + TypeScript todo list with AI-powered todo generation via Groq
- Node.js (LTS)
- A physical device with Expo Go installed, or an iOS/Android emulator
- A Groq API key (for the AI todos feature)
cd todo-app
npm install
npx expo startScan the QR code with Expo Go (Android) or the Camera app (iOS) to preview on a device. You can also run with a specific platform:
npx expo start --ios # iOS simulator
npx expo start --android # Android emulator
npx expo start --web # Web browserCreate a todo-app/.env file with your Groq API key:
GROQ_API_KEY=your_key_here
cd slides
npm install
npm start # Local dev server
npm run build # Production buildBuilt with Expo SDK 54 and React Native 0.81.
- Navigation — Bottom tab navigator with two screens: "My Todos" (manual CRUD) and "AI Todos" (Groq-powered generation)
- State management — React Context (
TodoProvider+useTodos()hook) shared across both screens - AI integration — Groq SDK using
llama-3.3-70b-versatileto generate todo suggestions from natural language prompts
todo-app/
├── index.ts # Entry point
├── App.tsx # Root component with navigation
├── context/TodoContext.tsx # Shared state provider
├── screens/ManualTodoScreen.tsx # Manual todo CRUD
├── screens/AiTodoScreen.tsx # AI-powered todo generation
├── services/groqService.ts # Groq API client
└── types/Todo.ts # Todo interface
- Part 1: Concepts & Foundations (~55 min) — What is React Native, development environment, core React concepts (JSX, components, props, state), React Native building blocks and styling
- Part 2: Hands-On Mini-Project (~45 min) — Build a todo list app step by step
- Part 3: Wrap-Up & Next Steps (~5 min) — Review and resources for further learning