面向 ADHD 儿童家长的“日常教练 + 记录 + AI 复盘”应用,帮助家长用最小行动持续改善孩子的行为、情绪与家庭协作。
adhd-rn:Expo + React Native 客户端(当前主要开发目录)ADHD_assessment_items.md:每日记录指标与策略映射PRD_ADHD_parent_coach.md:产品需求文档(MVP)Reference/:两套原始参考资料(六步法 / Step by Step)
- Expo SDK:
~54.0.33 - React:
19.1.0 - React Native:
0.81.5 - TypeScript:
~5.9.2
cd /Users/bingran_you/Documents/GitHub_MacBook/ADHD/adhd-rn
npm install
# iOS 模拟器
npm run ios
# Android 模拟器/真机
npm run android
# Web
npm run web- macOS + Xcode + iOS Simulator
- 安装 AppleSimulatorUtils(Detox 依赖)
brew tap wix/brew
brew install applesimutilscd /Users/bingran_you/Documents/GitHub_MacBook/ADHD/adhd-rn
npm install
npx pod-install# 构建 iOS Detox App
npm run e2e:build
# 运行 E2E 测试
npm run e2e:test- 默认使用
.detoxrc.js中的模拟器(iPhone 15)。如你的环境没有该设备,请在.detoxrc.js里替换为已安装的 Simulator。 - 当前仅配置 iOS,Android E2E 尚未接入。
name:adhd-rnslug:adhd-rnversion:1.0.0orientation:portraituserInterfaceStyle:lightnewArchEnabled:truesplash:./assets/splash-icon.png(resizeMode: contain,backgroundColor: #ffffff)ios.supportsTablet:trueandroid.edgeToEdgeEnabled:trueandroid.predictiveBackGestureEnabled:falseandroid.adaptiveIcon:./assets/adaptive-icon.pngweb.favicon:./assets/favicon.png
npm run start→expo startnpm run ios→expo start --ios --port 8082npm run android→expo start --androidnpm run web→expo start --web
extends: expo/tsconfig.basecompilerOptions.strict: true
# 打开 Simulator 应用
open -a Simulator如果 Simulator 中没有设备/运行时(会报 No iOS devices available),执行:
# 安装 iOS Simulator 运行时
xcodebuild -downloadPlatform iOS
# 创建并启动一个设备(如 iPhone 16)
xcrun simctl create "iPhone 16" com.apple.CoreSimulator.SimDeviceType.iPhone-16 com.apple.CoreSimulator.SimRuntime.iOS-26-2
open -a Simulator
xcrun simctl boot "iPhone 16"然后再运行:
cd /Users/bingran_you/Documents/GitHub_MacBook/ADHD/adhd-rn
npm run iosExpo 默认使用 8081。如果端口被其他进程占用,CLI 会询问是否切换端口;在非交互模式下会直接报错。
解决办法 A:换端口启动
cd /Users/bingran_you/Documents/GitHub_MacBook/ADHD/adhd-rn
EXPO_PORT=8082 npm run ios
# 或
npx expo start --ios --port 8082解决办法 B:释放 8081 端口
lsof -i :8081
kill -9 <PID>本次排查中,端口
8081被一个 Java 进程占用(可能来自 IntelliJ / 后端服务)。
如果你正在运行其他服务,建议优先用“换端口”方式启动 Expo。
- STEP by STEP HELP for CHILDREN with ADHD: A Self-Help Manual for Parents
- 多动症儿童养育六步法(家长自助书)