expo-bbase 1.4.0 → 1.5.0
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 +21 -8
- 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
|
@@ -2406,7 +2406,7 @@ var flashlistModule = {
|
|
|
2406
2406
|
description: "@shopify/flash-list",
|
|
2407
2407
|
defaultChecked: false,
|
|
2408
2408
|
dependencies: {
|
|
2409
|
-
"@shopify/flash-list": "
|
|
2409
|
+
"@shopify/flash-list": "2.0.2"
|
|
2410
2410
|
},
|
|
2411
2411
|
devDependencies: {},
|
|
2412
2412
|
files: [
|
|
@@ -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
|
}
|
|
@@ -4162,21 +4161,33 @@ function generateBasePackageJson(projectName) {
|
|
|
4162
4161
|
main: "expo-router/entry",
|
|
4163
4162
|
scripts: {
|
|
4164
4163
|
start: "expo start",
|
|
4164
|
+
"reset-project": "node ./scripts/reset-project.js",
|
|
4165
4165
|
android: "expo start --android",
|
|
4166
4166
|
ios: "expo start --ios",
|
|
4167
4167
|
web: "expo start --web",
|
|
4168
|
-
lint: "
|
|
4168
|
+
lint: "expo lint"
|
|
4169
4169
|
},
|
|
4170
4170
|
dependencies: {
|
|
4171
|
-
expo: "~54.0.
|
|
4171
|
+
expo: "~54.0.33",
|
|
4172
4172
|
"expo-router": "~6.0.23",
|
|
4173
4173
|
"expo-linking": "~8.0.12",
|
|
4174
4174
|
"expo-constants": "~18.0.13",
|
|
4175
4175
|
"expo-status-bar": "~3.0.9",
|
|
4176
4176
|
"expo-splash-screen": "~31.0.13",
|
|
4177
4177
|
"expo-font": "~14.0.11",
|
|
4178
|
+
"expo-haptics": "~15.0.8",
|
|
4179
|
+
"expo-image": "~3.0.11",
|
|
4180
|
+
"expo-symbols": "~1.0.8",
|
|
4181
|
+
"expo-system-ui": "~6.0.9",
|
|
4182
|
+
"expo-web-browser": "~15.0.10",
|
|
4178
4183
|
react: "19.1.0",
|
|
4184
|
+
"react-dom": "19.1.0",
|
|
4179
4185
|
"react-native": "0.81.5",
|
|
4186
|
+
"react-native-web": "~0.21.0",
|
|
4187
|
+
"@expo/vector-icons": "^15.0.3",
|
|
4188
|
+
"@react-navigation/bottom-tabs": "^7.4.0",
|
|
4189
|
+
"@react-navigation/elements": "^2.6.3",
|
|
4190
|
+
"@react-navigation/native": "^7.1.8",
|
|
4180
4191
|
"react-native-safe-area-context": "~5.6.0",
|
|
4181
4192
|
"react-native-screens": "~4.16.0",
|
|
4182
4193
|
"react-native-reanimated": "~4.1.1",
|
|
@@ -4184,18 +4195,20 @@ function generateBasePackageJson(projectName) {
|
|
|
4184
4195
|
"react-native-gesture-handler": "~2.28.0",
|
|
4185
4196
|
nativewind: "^4.1.0",
|
|
4186
4197
|
tailwindcss: "^3.4.0",
|
|
4187
|
-
"react-native-svg": "
|
|
4198
|
+
"react-native-svg": "15.12.1"
|
|
4188
4199
|
},
|
|
4189
4200
|
devDependencies: {
|
|
4190
4201
|
"@types/react": "~19.1.0",
|
|
4191
|
-
typescript: "~5.9.2"
|
|
4202
|
+
typescript: "~5.9.2",
|
|
4203
|
+
eslint: "^9.25.0",
|
|
4204
|
+
"eslint-config-expo": "~10.0.0"
|
|
4192
4205
|
}
|
|
4193
4206
|
};
|
|
4194
4207
|
}
|
|
4195
4208
|
|
|
4196
4209
|
// src/index.ts
|
|
4197
4210
|
var import_execa = require("execa");
|
|
4198
|
-
var CLI_VERSION = "1.
|
|
4211
|
+
var CLI_VERSION = "1.5.0";
|
|
4199
4212
|
var CONFIG_FILE = ".expo-bbase.json";
|
|
4200
4213
|
async function run() {
|
|
4201
4214
|
const program = new import_commander.Command();
|