Taro Mortgage Calculator
v1.2.0
Taro 3 - MortgageCalculator
由左至右:React Native、Weapp、H5
基於Taro 3開發的多端(React Native、Weapp、H5)實例
開發React Native,建議閱讀React Native 端開發流程和React Native 端開發前註意
目錄結構:
├── config
├── global.d.ts
├── metro.config.js // Taro 3 RN metro 配置文件
├── package.json
├── project.config.json
├── src
│ ├── app.config.ts
│ ├── app.rn.scss // 针对RN的单独样式
│ ├── app.scss
│ ├── app.ts
│ ├── assets
│ ├── components // 封装的一些多端组件
│ ├── index.html
│ ├── pages
│ └── utils
├── tsconfig.json
└── yarn.lock
此專案旨在為Taro 3開發多端應用提供一個可參考的案例,封裝一些支援多端的元件,提供一份開發多端應用的想法、技巧,能夠快速上手開發
React Native | 小程式 | H5 |
---|---|---|
安卓:taroDemo.apk IOS:taroDemo.app(IOS模擬器套件) | ![]() | ![]() https://wuba.github.io/Taro-Mortgage-Calculator |
yarn dev:rn
,印出二維碼。或者打開releases頁面。 # clone到本地
git clone https://github.com/wuba/Taro-Mortgage-Calculator.git
# 进去项目根目录
cd Taro-Mortgage-Calculator
# 安装依赖
yarn
# 运行RN 默认端口8081
yarn dev:rn
# 运行微信小程序
yarn dev:weapp
# 运行H5
yarn dev:h5
MIT