expo-bbase 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -22
- package/dist/index.js +146 -150
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ npx expo-bbase my-app
|
|
|
45
45
|
| 图片 | expo-image 封装 |
|
|
46
46
|
| 视频 | expo-av 封装 |
|
|
47
47
|
| Google 登录 | @react-native-google-signin/google-signin |
|
|
48
|
-
| Facebook 登录 | expo-facebook |
|
|
48
|
+
| Facebook 登录 | expo-auth-session 封装(SDK 54 不再支持 expo-facebook) |
|
|
49
49
|
| Apple 登录 | expo-apple-authentication |
|
|
50
50
|
| WebView 容器 | react-native-webview + JS Bridge |
|
|
51
51
|
| 多语言 | i18next + react-i18next |
|
|
@@ -147,26 +147,39 @@ my-app/
|
|
|
147
147
|
│ │ ├── list.tsx # Card 列表
|
|
148
148
|
│ │ └── mine.tsx # 个人中心 + 退出
|
|
149
149
|
│ └── +not-found.tsx
|
|
150
|
-
├──
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
│ ├──
|
|
155
|
-
│ │ ├──
|
|
156
|
-
│ │
|
|
157
|
-
│ │
|
|
158
|
-
│ │
|
|
159
|
-
│ │
|
|
160
|
-
│ │
|
|
161
|
-
│ │
|
|
162
|
-
│
|
|
163
|
-
│
|
|
164
|
-
│
|
|
165
|
-
|
|
166
|
-
│
|
|
167
|
-
|
|
168
|
-
│ ├──
|
|
169
|
-
│
|
|
150
|
+
├── api/ # 网络请求 (可选)
|
|
151
|
+
├── stores/ # 状态管理 (可选)
|
|
152
|
+
├── storage/ # 本地存储 (可选)
|
|
153
|
+
├── components/
|
|
154
|
+
│ ├── ui/ # rnr UI 组件
|
|
155
|
+
│ │ ├── button.tsx
|
|
156
|
+
│ │ ├── text.tsx
|
|
157
|
+
│ │ ├── input.tsx
|
|
158
|
+
│ │ ├── label.tsx
|
|
159
|
+
│ │ ├── card.tsx
|
|
160
|
+
│ │ ├── separator.tsx
|
|
161
|
+
│ │ └── alert-dialog.tsx
|
|
162
|
+
│ ├── SignInForm.tsx # 登录表单
|
|
163
|
+
│ ├── Themed.tsx # 主题组件
|
|
164
|
+
│ └── HelloWave.tsx # 示例组件
|
|
165
|
+
├── lib/
|
|
166
|
+
│ └── utils.ts # cn() 工具函数
|
|
167
|
+
├── modules/ # 功能模块 (可选)
|
|
168
|
+
│ ├── animation/
|
|
169
|
+
│ ├── form/
|
|
170
|
+
│ ├── i18n/
|
|
171
|
+
│ ├── media/
|
|
172
|
+
│ ├── notification/
|
|
173
|
+
│ ├── payment/
|
|
174
|
+
│ ├── permission/
|
|
175
|
+
│ ├── webview/
|
|
176
|
+
│ └── auth/
|
|
177
|
+
│ ├── apple.ts
|
|
178
|
+
│ ├── facebook.ts
|
|
179
|
+
│ └── google.ts
|
|
180
|
+
├── hooks/ # 自定义 Hooks
|
|
181
|
+
├── constants/ # 常量
|
|
182
|
+
├── types/ # 类型定义
|
|
170
183
|
├── global.css # NativeWind CSS 变量 (light/dark)
|
|
171
184
|
├── assets/ # 静态资源
|
|
172
185
|
├── app.json # Expo 配置
|
|
@@ -188,7 +201,7 @@ my-app/
|
|
|
188
201
|
{
|
|
189
202
|
"projectName": "my-app",
|
|
190
203
|
"selectedModules": ["network", "state", "ui-reusables"],
|
|
191
|
-
"cliVersion": "1.3.
|
|
204
|
+
"cliVersion": "1.3.4",
|
|
192
205
|
"uiTemplate": "login-tabs"
|
|
193
206
|
}
|
|
194
207
|
```
|
|
@@ -215,3 +228,21 @@ npm run build
|
|
|
215
228
|
## License
|
|
216
229
|
|
|
217
230
|
MIT
|
|
231
|
+
|
|
232
|
+
## 更新日志
|
|
233
|
+
|
|
234
|
+
### v1.3.4
|
|
235
|
+
- 🔧 **目录结构修复**:去除 `src/` 层,模块文件(`modules/`、`api/`、`stores/` 等)与 `app/` 平级
|
|
236
|
+
- 📝 修正 Facebook 登录模块描述(SDK 54 不再支持 `expo-facebook`,改用 `expo-auth-session`)
|
|
237
|
+
|
|
238
|
+
### v1.3.3
|
|
239
|
+
- 🔧 修复 `react-native-worklets` 版本前缀(`0.5.1` → `~0.5.1`)
|
|
240
|
+
|
|
241
|
+
### v1.3.2
|
|
242
|
+
- 🔧 修复 babel-preset-expo 自动检测 worklets/reanimated plugin 的问题
|
|
243
|
+
- 未选 animation 模块时显式禁用 `reanimated: false, worklets: false`
|
|
244
|
+
|
|
245
|
+
### v1.3.0
|
|
246
|
+
- ✨ 新增 UI 模板选择(Login + Tabs / Default)
|
|
247
|
+
- ✨ 集成 reactnative.reusables 官方组件
|
|
248
|
+
- ✨ 新增 `upgrade` 和 `add` 命令
|