From 60cf32506562d3c780f4d336f92e09670309ecdf Mon Sep 17 00:00:00 2001 From: Chen Zeyu Date: Wed, 23 May 2018 16:05:14 +0800 Subject: [PATCH] docs: change codepush command (#414) --- docs/codepush.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/codepush.rst b/docs/codepush.rst index 841808414f..c1fd92b4c5 100644 --- a/docs/codepush.rst +++ b/docs/codepush.rst @@ -5,9 +5,9 @@ If you want to use sentry together with CodePush you have to send us the CodePus .. sourcecode:: javascript - import CodePush from "react-native-code-push"; + import codePush from "react-native-code-push"; - CodePush.getUpdateMetadata().then((update) => { + codePush.getUpdateMetadata().then((update) => { if (update) { Sentry.setVersion(update.appVersion + '-codepush:' + update.label); } @@ -20,7 +20,7 @@ Make sure that you call this function otherwise Sentry is not able to symbolicat After updating your CodePush release you have to upload the new assets to Sentry:: - $ code-push release-react YourApp ios --outputDir build + $ appcenter codepush release-react YourApp ios --outputDir build $ export SENTRY_PROPERTIES=./ios/sentry.properties $ sentry-cli react-native codepush YourApp ios ./build