refactor(storage): 迁移 AsyncStorage 至 expo-sqlite/kv-store

- 统一替换所有 @react-native-async-storage/async-storage 导入为自定义 kvStore
- 新增 kvStore.ts 封装 expo-sqlite/kv-store,保持与 AsyncStorage 完全兼容
- 新增同步读写方法,提升性能
- 引入 expo-sqlite 依赖并更新 lock 文件

BREAKING CHANGE: 移除 @react-native-async-storage/async-storage 依赖,需重新安装依赖并清理旧数据
This commit is contained in:
richarjiang
2025-09-15 12:51:18 +08:00
parent 91df01bd79
commit 2357596665
20 changed files with 68 additions and 17 deletions

View File

@@ -44,6 +44,7 @@
"expo-quick-actions": "^5.0.0",
"expo-router": "~6.0.4",
"expo-splash-screen": "~31.0.8",
"expo-sqlite": "^16.0.8",
"expo-status-bar": "~3.0.7",
"expo-symbols": "~1.0.6",
"expo-system-ui": "~6.0.7",
@@ -81,4 +82,4 @@
"typescript": "~5.9.2"
},
"private": true
}
}