6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

React Native codepush導入備忘録

Last updated at Posted at 2018-10-18

プロジェクトの作成

$ react-native init codepush 

Microsoft App Center に登録しておく
https://appcenter.ms

導入手順公式ドキュメント
https://docs.microsoft.com/en-us/appcenter/distribution/codepush

appcenter CLIのインストール

$ npm install -g appcenter-cli

appcenterにログイン

$ appcenter login

appcenterにアプリを登録

$ appcenter apps create -d codepush-iOS -o iOS -p React-Native

デプロイ(staging)

$ appcenter codepush release-react -a nyara/codepush-iOS -d Staging

keyの確認(アプリのinfo.plistに追記する)

$ appcenter codepush deployment list -a nyara/codepush-iOS

アプリ側

react-native-code-pushの導入

$ npm install --save react-native-code-push
$ react-native link react-native-code-push

サンプルコード

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?