š± Mobile Phone Preview - Quick Start
ā **You're already viewing this in VS Code!**
š± Mobile Phone Preview - Quick Start
ā” Fastest Way to See Live Morphing
Option 1: Web Browser (Already Running!)
ā You're already viewing this in VS Code!
- Go to the Simple Browser at:
http://localhost:8081 - Wait for the app to load (may take 10-30 seconds)
- Scroll to the bottom of the screen
- You'll see 4 large buttons: CLASS | MESS | STUDY | NEUTRAL
- Click any button to see the entire UI morph instantly
- Background color changes
- All text recolors
- Cards transform
- Buttons update
- Tab bars shift colors
š” Pro Tip: Edit colors in frontend/src/theme/colors.ts and the web app hot-reloads instantly!
Option 2: iOS (iPhone/iPad)
Step 1: Install Expo Go
- Open App Store
- Search: "Expo Go"
- Download the official app (published by Expo, Inc.)
- Open the app
Step 2: Get the Tunnel URL
In VS Code terminal, look for the output when you ran npm start. It should show:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā QR code (scan me): ā
ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā āā ā
ā āāā āāāāāāāāāāāāāāāāāāāāāāāāāā ā āā ā
ā āāā ā exp://192.168.x.x:8081ā ā āā ā
ā āāā āāāāāāāāāāāāāāāāāāāāāāāāāā ā āā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā āā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā
ā Or use this URL: ā
ā exp://192.168.x.x:8081 ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Step 3: Scan or Open Link
-
Option A (Scan QR):
- In Expo Go app ā tap camera icon
- Point at QR code shown in terminal
- Tap link that appears
-
Option B (Copy URL):
- Copy the
exp://...URL from terminal - Open in Safari/Chrome
- Tap "Open in Expo Go" when prompted
- Copy the
Step 4: Wait for App to Load
- First load: 30-60 seconds (downloads and bundles code)
- Subsequent loads: 5-10 seconds
- You'll see splash screen, then the app
Step 5: Scroll Down & Tap Buttons
- Scroll to bottom of Neutral (Hub) screen
- Tap buttons in order: CLASS, MESS, STUDY, NEUTRAL
- Watch the theme morph in real-time šØ
Option 3: Android (Phone/Tablet)
Step 1: Install Expo Go
- Open Play Store
- Search: "Expo"
- Install "Expo" app (published by Expo, Inc.)
- Open the app
Step 2: Connect to Same Wi-Fi (Important!)
Make sure your phone is on the same Wi-Fi network as your computer
Step 3: Scan QR Code or Open Link
Same as iOS above:
- Either scan the QR code from terminal
- Or copy
exp://...URL and open in Expo Go
Step 4: Watch App Load
- First time: might take 1-2 minutes
- Should eventually show the app
Step 5: Test Mode Morphing
- Scroll down
- Tap color buttons
- See live theme changes
Option 4: Android Emulator (If you have Android Studio)
Setup (if you haven't already)
# Install Android Studio from https://developer.android.com/studio
# Create AVD (Android Virtual Device) through Android Studio UI
# Or use command line:
emulator -avd Pixel_4_API_31 # or your created emulator name
Run App
cd C:\Users\mohit\Downloads\MorphingUI\frontend
npm run android
The app will:
- Build the app
- Detect running emulator
- Install APK
- Launch the app
- Show the Morphing UI
š± Phone Testing Checklist
Before You Start
- Node.js and npm installed
-
npm startrunning in terminal (check fornpm startoutput) - Phone/emulator connected to same Wi-Fi as computer
- Expo Go app installed on phone
Testing Morphing Features
- App loads and shows Neutral mode (hub screen)
- Scroll to bottom and see 4 big buttons
- Click "CLASS" ā background changes to navy, orange accents appear
- Click "MESS" ā background changes to brown, golden orange with crowd card
- Click "STUDY" ā background changes to indigo, purple timer appears
- Click "NEUTRAL" ā back to hub with balanced colors
- All transitions are smooth (no delays, instant color shift)
Verify Functionality
- Class screen has recording button + tabs
- Mess screen shows crowd density indicator
- Study screen has focus timer and streak counter
- Neutral screen has dashboard cards + mode buttons
- Text is readable in all modes (no low contrast)
- Bottom navigation tab icon and label change color
Performance Check
- Mode switching feels instant (< 300ms)
- No visual glitches when changing modes
- Scrolling is smooth
- Memory usage reasonable (check phone settings)
Troubleshooting Phone Preview
ā App Won't Load / "Connection Refused"
Problem: Can't connect to dev server Solutions:
- Check if
npm startis still running in terminal - Verify phone is on same Wi-Fi as computer
- Check firewall isn't blocking port 8081:
# In Windows Terminal: netstat -ano | findstr "8081" - If no output, Expo server died. Run
npm startagain - Try tunnel mode:
npm start -- --tunnel(slower but more reliable)
ā QR Code Doesn't Work
Problem: Camera app doesn't recognize QR code from terminal Solutions:
- Use URL method instead: Copy
exp://...link and paste in Expo Go - Make sure QR code is fully visible on screen
- Get closer/at angle
- Take a screenshot and scan from another device
- Manually type the IP address shown in terminal
ā App Shows Blank White Screen
Problem: App loaded but nothing appears Solutions:
- Wait 5-10 more seconds (still bundling)
- Close Expo Go completely and re-open link
- Clear cache:
npm start -- -c(then scan QR again) - Check browser console for errors (tap 3 dots ā Settings ā Logs)
- Restart both terminal (
npm start) and Expo Go app
ā Mode Buttons Don't Work
Problem: Tapping buttons does nothing Solutions:
- Make sure you're on Neutral (Hub) mode first
- Scroll all the way down to see the buttons
- Tap the blue buttons clearly (not the text inside)
- Check that the button appears to respond (color change/highlight)
- If still not working, check terminal for errors (red text)
ā Colors Don't Change/Wrong Colors Showing
Problem: Tapped button but colors didn't update Solutions:
- Verify you tapped the right button (check which mode label shows)
- Clear Metro cache: Ctrl+C in terminal, then
npm start -- -c - Force refresh on phone: Shake phone and select "Refresh"
- Fully restart: Kill Expo Go, kill terminal, restart both
- Check
frontend/src/theme/colors.tsthat colors are defined
ā Can't See QR Code in Terminal
Problem: Terminal output not showing QR code Solutions:
- Look for
exp://URL in terminal output (that's your link) - Copy the full URL:
exp://[IP]:[PORT] - Go to Expo Go app ā paste URL in search bar
- If terminal has no output, kill all node processes:
Get-Process node | Stop-Process npm start # restart
šÆ How to Demo to Others
Show the Morphing Live (3 min demo)
- Open on your phone (already scanned QR code)
- Show Neutral mode: "This is the campus hub - balanced colors"
- Scroll down: "Watch what happens when I change the context..."
- Tap CLASS: "Now we're in a classroom - warm, focused orange and academic vibe"
- Tap MESS: "When you're at the food canteen - warm browns and dynamic crowd visualization"
- Tap STUDY: "Deep focus environment - cool purples and peaceful"
- Tap NEUTRAL: "Back to the hub"
- Explain: "The same codebase, 4 completely different looks. The UI morphs, not you."
Key Talking Points
- Design: "Rare, rare color palettes - not Material Design blues"
- Architecture: "XState FSM + Zustand for state, theme system hooks for colors"
- Performance: "Zero delay morphing - instant color updates"
- Accessibility: "All colors tested for WCAG AA contrast"
- Portfolio: "This kind of polish shows deep UI/UX thinking"
Advanced: Local Network Debugging
If you want to see the app URL clearly:
# In terminal, run:
npm start
# Look for output like:
# āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
# localhost:19000
# Mac OS: exp://192.168.1.100:19000
# Android: exp://192.168.1.100:19000
# Or scan this QR code:
# [QR CODE SHOWN]
# āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Copy that URL and:
- On Phone: Open Expo Go ā search icon ā paste URL ā Enter
- In Web Browser: Paste into address bar directly
Pro Tips āØ
- Hot Reload: Change colors in
colors.tsand watch phone update instantly - Test Color Blindness: Settings ā Accessibility ā Color filters
- Screen Record: Record your phone while switching modes for portfolio video
- Performance: Use React DevTools Profiler to see component re-rendering
- Multiple Phones: If others have Expo Go, they can scan same QR to test simultaneously
Success Indicators
ā You'll see live morphing when:
- App loads and shows "Good evening!" greeting (Neutral mode)
- Buttons at bottom are visible and tappable
- Tapping buttons changes colors instantly
- No lag between tap and color change
- All text remains readable in each mode
- Mode label updates in header
š If all of the above work, you have a production-ready morphing UI!
Next Steps:
- Connect backend API to show real data
- Add animations to color morphing
- Implement automatic mode detection (GPS-based)
- Add custom theme selector
- Create production build for TestFlight/Play Store
Questions? Check IMPLEMENTATION_GUIDE.md for code details.
Related Documents
Setup & Deployment Checklist
Step-by-step checklist to get your Content Agent System up and running.
RealDiag Demo Video Script
**Target Audience:** Healthcare professionals, hospital administrators, potential investors
š Product Hunt Launch Prep
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā