添加项目基础配置和核心功能模块: - 配置 TypeScript 和 React Native 环境 - 实现认证状态管理 - 封装 API 请求客户端 - 搭建应用导航框架
68 lines
1.9 KiB
JSON
68 lines
1.9 KiB
JSON
/**
|
||
* Timeline 移动端 App - React Native 项目配置
|
||
*
|
||
* 功能描述:
|
||
* 定义 React Native 移动端应用的项目配置。
|
||
*
|
||
* 技术栈:
|
||
* - React Native 0.73+
|
||
* - TypeScript
|
||
* - React Navigation 6
|
||
* - Redux Toolkit / Zustand
|
||
* - React Query
|
||
* - NativeWind (TailwindCSS for RN)
|
||
*
|
||
* @author Timeline Team
|
||
* @date 2024
|
||
*/
|
||
|
||
// package.json 配置
|
||
{
|
||
"name": "timeline-mobile",
|
||
"version": "1.0.0",
|
||
"private": true,
|
||
"scripts": {
|
||
"android": "react-native run-android",
|
||
"ios": "react-native run-ios",
|
||
"start": "react-native start",
|
||
"test": "jest",
|
||
"lint": "eslint .",
|
||
"type-check": "tsc --noEmit"
|
||
},
|
||
"dependencies": {
|
||
"react": "18.2.0",
|
||
"react-native": "0.73.0",
|
||
"@react-navigation/native": "^6.1.0",
|
||
"@react-navigation/native-stack": "^6.9.0",
|
||
"@react-navigation/bottom-tabs": "^6.5.0",
|
||
"@react-navigation/drawer": "^6.6.0",
|
||
"react-native-screens": "^3.29.0",
|
||
"react-native-safe-area-context": "^4.8.0",
|
||
"react-native-gesture-handler": "^2.14.0",
|
||
"react-native-reanimated": "^3.6.0",
|
||
"@react-native-async-storage/async-storage": "^1.21.0",
|
||
"@tanstack/react-query": "^5.17.0",
|
||
"zustand": "^4.4.0",
|
||
"axios": "^1.6.0",
|
||
"date-fns": "^3.2.0",
|
||
"react-native-image-picker": "^7.1.0",
|
||
"react-native-camera": "^4.2.1",
|
||
"react-native-geolocation-service": "^5.3.1",
|
||
"react-native-push-notification": "^8.1.1",
|
||
"@react-native-community/netinfo": "^11.3.0",
|
||
"nativewind": "^2.0.11",
|
||
"react-native-svg": "^14.1.0",
|
||
"react-native-fast-image": "^8.6.3"
|
||
},
|
||
"devDependencies": {
|
||
"@types/react": "^18.2.0",
|
||
"@types/react-native": "^0.73.0",
|
||
"typescript": "^5.3.0",
|
||
"eslint": "^8.56.0",
|
||
"@typescript-eslint/eslint-plugin": "^6.18.0",
|
||
"prettier": "^3.2.0",
|
||
"tailwindcss": "^3.4.0",
|
||
"react-native-svg-transformer": "^1.3.0"
|
||
}
|
||
}
|