GitHubhtml
Giteereact
Androidlinux
Expoandroid
項目基於Expo的 React Native 構建技術。ios
Expo 是一個圍繞 React Native 構建的免費開源工具鏈,可幫助您使用 JavaScript 和 React 構建本地 iOS 和 Android 項目git
Expo 文檔github
macOSjson
Windows64-bitreact-native
Linuxapp
git clone https://github.com/zxj963577494/OverWatchTeams-React-Native-Expo.git
打開桌面客戶端(XDE)加載本項目,啓動本項目,點擊 Share 獲取二維碼
打開 iOS 或 Android 客戶端,掃描 XDE 客戶端二維碼
yarn global add exp
exp build:ios / build:android
exp build:status
yarn global add exp
exp publish
exp build:ios/build:android
生成的是 JS Bundle 文件,Expo 會將該文件上傳到 Expo 雲端,由 Expo 構建 APP,使用exp build:status
能夠獲得 APP 在雲端構建的進度,構建完成後,會返回 APP 地址
使用 exp build:ios
時必須有$99 的開發者帳戶(我沒有,因此沒構建 iOS 版本),若是 apple id 開啓了兩步驗證,須要加--local-auth
exp publish
用於發佈 JS Bundle 文件,用於熱更新應用,更改 app.json 文件的版本號,icon 之類,用戶安裝的 App 會自動同步發佈時版本所改動的內。參考資料 1 參考資料 2
Expo 沒法像原生 React Native 同樣,能夠對本地模塊進行操做,固然react-native link
命令也是沒法使用的,但你能夠使用 Expo 開放的操做本地功能的 API,SDK API 參考