expo-bbase 1.4.0 → 1.4.1
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 +15 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -129,8 +129,10 @@ npx expo-bbase add . -m bottom-sheet,flashlist
|
|
|
129
129
|
- **Expo SDK 54** + New Architecture
|
|
130
130
|
- **Expo Router v5** — 文件路由
|
|
131
131
|
- **NativeWind v4** — Tailwind CSS for React Native
|
|
132
|
-
- **TypeScript** — 类型安全
|
|
132
|
+
- **TypeScript** — 类型安全 + `@/*` 路径别名
|
|
133
133
|
- **react-native-svg** — SVG 支持
|
|
134
|
+
- **Reanimated 4 + Gesture Handler + Worklets** — 动画/手势(默认包含,不再需要单独选)
|
|
135
|
+
- **assets/** — 默认图标 + Nunito-Bold 字体
|
|
134
136
|
|
|
135
137
|
所有依赖版本与 Expo SDK 54 的 `bundledNativeModules.json` 对齐。
|
|
136
138
|
|
|
@@ -182,6 +184,12 @@ my-app/
|
|
|
182
184
|
├── types/ # 类型定义
|
|
183
185
|
├── global.css # NativeWind CSS 变量 (light/dark)
|
|
184
186
|
├── assets/ # 静态资源
|
|
187
|
+
│ ├── icon.png # App 图标
|
|
188
|
+
│ ├── adaptive-icon.png # Android 自适应图标
|
|
189
|
+
│ ├── splash-icon.png # 启动画面
|
|
190
|
+
│ ├── favicon.png # Web favicon
|
|
191
|
+
│ └── fonts/
|
|
192
|
+
│ └── Nunito-Bold.ttf # 默认字体
|
|
185
193
|
├── app.json # Expo 配置
|
|
186
194
|
├── babel.config.js # Babel 配置 (NativeWind + Reanimated)
|
|
187
195
|
├── metro.config.js # Metro 配置 (withNativeWind)
|
|
@@ -231,6 +239,12 @@ MIT
|
|
|
231
239
|
|
|
232
240
|
## 更新日志
|
|
233
241
|
|
|
242
|
+
### v1.4.0
|
|
243
|
+
- 🔧 **动画依赖默认包含**:`react-native-reanimated`、`react-native-worklets`、`react-native-gesture-handler` 加入基础依赖,不再需要用户单独选择,彻底解决 `Cannot find module 'react-native-worklets/plugin'` 报错
|
|
244
|
+
- 🖼️ **assets 目录内置**:自动生成 `assets/` 目录(icon.png、adaptive-icon.png、splash-icon.png、favicon.png、fonts/Nunito-Bold.ttf),app.json 恢复图标引用
|
|
245
|
+
- ⚙️ **tsconfig.json 升级**:继承 `expo/tsconfig.base`,`@/*` 路径别名开箱即用
|
|
246
|
+
- 🔧 **babel.config.js 简化**:移除 `reanimated: false, worklets: false` 禁用标志(因包已默认安装)
|
|
247
|
+
|
|
234
248
|
### v1.3.5
|
|
235
249
|
- 🔧 **修复 Facebook 登录模块**:移除已废弃的 `expo-facebook`(SDK 54 不再包含),改用 `expo-auth-session` + `expo-web-browser` 实现 Facebook OAuth 登录
|
|
236
250
|
|
package/dist/index.js
CHANGED
|
@@ -3529,8 +3529,7 @@ export {};
|
|
|
3529
3529
|
},
|
|
3530
3530
|
"plugins": [
|
|
3531
3531
|
"expo-router",
|
|
3532
|
-
"expo-splash-screen"
|
|
3533
|
-
"react-native-reanimated"
|
|
3532
|
+
"expo-splash-screen"
|
|
3534
3533
|
]
|
|
3535
3534
|
}
|
|
3536
3535
|
}
|
|
@@ -4195,7 +4194,7 @@ function generateBasePackageJson(projectName) {
|
|
|
4195
4194
|
|
|
4196
4195
|
// src/index.ts
|
|
4197
4196
|
var import_execa = require("execa");
|
|
4198
|
-
var CLI_VERSION = "1.4.
|
|
4197
|
+
var CLI_VERSION = "1.4.1";
|
|
4199
4198
|
var CONFIG_FILE = ".expo-bbase.json";
|
|
4200
4199
|
async function run() {
|
|
4201
4200
|
const program = new import_commander.Command();
|