RnMultibundler/package.json
xuqm bf61fdc1ac feat(runtime): 新增 MultipleReactActivityDelegate 以支持分包加载- 添加 MultipleReactActivityDelegate 类,用于处理多个 React 活动
- 实现 ReactHostHelper 类,辅助加载bundle
- 修改 BuzActivity 和 MainApplication 以支持新的分包加载逻辑
- 更新 App.tsx,添加新功能按钮
- 在 package.json 中添加 --active-arch-only 参数以优化性能
- 在 gradle.properties 中启用配置缓存
2025-07-15 12:47:06 +08:00

56 行
2.4 KiB
JSON

{
"name": "YiwangxinMultip",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android --active-arch-only",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
"build-android-common": "react-native bundle --platform android --dev false --entry-file src/common/common.ts --bundle-output ./bundle/common.android.bundle --assets-dest ./bundle --config metro.common.config.js --minify true --reset-cache",
"build-android-app": "react-native bundle --platform android --dev false --entry-file src/app/app.ts --bundle-output ./bundle/app.android.bundle --assets-dest ./bundle --config metro.main.config.js --minify true --reset-cache",
"build-android-ywq": "react-native bundle --platform android --dev false --entry-file src/ywq/ywq.ts --bundle-output ./bundle/ywq.android.bundle --assets-dest ./bundle --config metro.main.config.js --minify true --reset-cache",
"build-android-hospital": "react-native bundle --platform android --dev false --entry-file src/hospital/hospital.ts --bundle-output ./bundle/hospital.android.bundle --assets-dest ./bundle --config metro.main.config.js --minify true --reset-cache"
},
"codegenConfig": {
"name": "SpecManager",
"type": "modules",
"jsSrcsDir": "specs",
"android": {
"javaPackageName": "com.trust.ywx.specs"
}
},
"dependencies": {
"@react-native-async-storage/async-storage": "^2.2.0",
"@react-native/new-app-screen": "0.80.1",
"babel-plugin-module-resolver": "^5.0.2",
"react": "19.1.0",
"react-native": "0.80.1",
"react-native-storage": "^1.0.1"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "19.0.0",
"@react-native-community/cli-platform-android": "19.0.0",
"@react-native-community/cli-platform-ios": "19.0.0",
"@react-native/babel-preset": "0.80.1",
"@react-native/eslint-config": "0.80.1",
"@react-native/metro-config": "0.80.1",
"@react-native/typescript-config": "0.80.1",
"@types/jest": "^29.5.13",
"@types/react": "^19.1.0",
"@types/react-test-renderer": "^19.1.0",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "19.1.0",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}