How lucalves/plant-manager works
Project type and purpose
• This is a React Native mobile application (built with Expo and TypeScript) called “Plant Manager.”
• Purpose: allow users to register plants, schedule watering reminders and persist data either locally (AsyncStorage) or via a fake REST API (json-server).
File structure
• App entry point (App.tsx) at the root loads navigation and bootstraps Expo.
• src/pages – screen-level components (Welcome, UserIdentification, PlantSelect, PlantSave, Confirmation, MyPlants).
• src/components – reusable UI building blocks (Button, Header, PlantCard, Load spinner, etc.).
• src/routes – React Navigation stacks and tabs.
• src/services – api.ts (HTTP client), server.json (fake API schema).
• src/libs/storage.ts – wrapper around AsyncStorage for local persistence.
README for additional insights
• The app relies on Expo for build and bundling.
• json-server runs on port 3333 to simulate a backend REST API with a delay.
• Local storage is used for device notifications and offline support.