# qdd-rn **Repository Path**: cmoney/qdd-rn ## Basic Information - **Project Name**: qdd-rn - **Description**: 单多多壳子 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2021-07-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 安卓打包 ```bash cd android && ./gradlew assembleRelease ``` ## ios 打包 (1) 资源打包 ```shell react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output release_ios/main.jsbundle --assets-dest release_ios/ ``` (2) 导入资源 将 JS bundle 包和图片资源导入到 iOS 项目中,将资源推送 IOS target (3) 修改加载代码 修改 achive 的 schema 模式,或者修改加载的 bundle 包地址: ```objective-C - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; #else return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; #endif } ```