This is a React Native mobile app built with Expo that allows users to capture or upload plant images and detect potential diseases using a Flask-based AI model. π
β
Camera Integration β Capture plant images directly
β
Gallery Upload β Select images from the device
β
AI Disease Detection β Sends images to the Flask API for predictions
β
Clean UI β User-friendly interface with smooth navigation
β
Multi-Screen Navigation β Organized structure using Expo Router
plant-disease-detector/
βββ app/ # Main screens
β βββ index.js # Home screen
β βββ _layout.js # Layout wrapper for navigation
β βββ camera.js # Camera functionality
β βββ results.js # Displays prediction results
β βββ about.js # About page
βββ components/ # Reusable UI components
β βββ Button.js
β βββ DiseaseCard.js
β βββ Header.js
β βββ LoadingOverlay.js
βββ services/ # API communication
β βββ api.js
βββ constants/ # UI constants (Colors, Layout)
β βββ Colors.js
β βββ Layout.js
βββ assets/ # Static assets (images, fonts)
β βββ images/
β βββ fonts/
βββ app.json # Expo configuration
βββ babel.config.js # Babel settings
βββ package.json # Dependencies & scripts
βββ README.md # Documentation
git clone https://github.com/zeroruntime/DetectMe-frontend.git
cd DetectMe-frontendMake sure you have Node.js and Expo CLI installed.
npm installFor Android:
npm run androidFor iOS (Mac only):
npm run iosFor Web Preview:
npm run webFor Expo:
npx expo startThe app communicates with the Flask backend for disease detection.
Modify services/api.js to match your backend URL:
import axios from 'axios';
const API_URL = 'http://your-backend-ip:5000';π Key libraries used in this project:
expo-cameraβ Capture imagesexpo-image-pickerβ Upload from galleryaxiosβ API requestsreact-navigationβ Multi-screen navigation
Install missing dependencies with:
npm install1οΈβ£ Home Screen β Welcome screen with buttons to capture or upload images
2οΈβ£ Camera Screen β Uses device camera to take pictures
3οΈβ£ Results Screen β Displays disease predictions and confidence score
β
Improve UI/UX with better styling
β
Support more plant diseases
β
Offline prediction using on-device TensorFlow
Feel free to fork, create issues, or submit PRs! π
MIT License Β© 2025 DetectMe Team