iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 25
1
自我挑戰組

I Shot You 不小心系列 第 25

React Native code push - ios

Initial React Native App

  $ npx react-native init codepushdemo && cd codepushdemo

Install code push

  # Install the CLI
  $ npm install -g code-push-cli
  $ npm install -g appcenter-cli

  # Register for an account via github or email (if you have code-push account you could use **code-push login**)
  $ code-push register

  # Register your app. We call it AwesomeApp.
  $ code-push app add codepushdemo-ios ios react-native
  $ code-push app add codepushdemo-android android react-native

  # prepare app center
  $ yarn add appcenter appcenter-analytics appcenter-crashes --save-exact

  $ cd ios && pod install && cd ..
**Note:**

link 完之 IOS 會自動使用 Pod 

所以在 local 端 Xcode 要開啟 `XXXXX.xcworkspace` 才能正常開發

IOS

releasing-updates

Git

code-push 官方只支援 github bitbucketmicrosoft devops 三種版控

這次使用 bitbucket 做 Demo

要先在 bitbucket 建立一個新的 repo

參考資料來源

Get started with ‘CodePush’ (React-Native)

IOS Setup


上一篇
RXDB - with React And Pounch DB
下一篇
RXDB connect to React Component
系列文
I Shot You 不小心30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言