# react-native-web-template **Repository Path**: zhou83655/react-native-web-template ## Basic Information - **Project Name**: react-native-web-template - **Description**: 使用react-native和react-native-web来实现h5与客户端同构。 - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-20 - **Last Updated**: 2023-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: react-native-web, React-native ## README # 介绍 使用react-native和react-native-web来实现h5与客户端同构。 ## 命令执行 ```bash #启动web端 webpack serve --mode=development --config webpack.config.js #启动android端 react-native run-android #启动ios端 react-native run-ios #打包android apk cd ./android && ./gradlew assembleRelease #打包web端 rm -rf dist/ && webpack --mode=development --config webpack.config.js #打包JsBundle react-native bundle --entry-file index.js --platform android --dev false --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/src/main/res/ ```