npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

appcenter-codepush-demoapp

v0.0.1

Published

The React Native application in this repository and its corresponding documentation will help you quickly and easily onboard to Visual Studio App Center Code Push.

Downloads

20

Readme

Visual Studio App Center CodePush Demo App for React Native

The React Native application in this repository and its corresponding documentation will help you quickly and easily onboard to Visual Studio App Center Code Push.

About this repository

The App Center React Native Code Push is already integrated within the application. Simply follow the steps below to learn how to use each service.

A guide to quickly get started on using Code Push [https://github.com/microsoft/react-native-code-push].

Installing Code Push plugin

  1. Run this command from the App's root directory: $ npm install --save react-native-code-push

  2. For react-native verions >= 0.27, run : $ react-native link react-native-code-push

    For versions < 0.27, run: $ rnpm link react-native-code-push

If you do not have rnpm, please refer to details at https://docs.microsoft.com/en-us/appcenter/distribution/codepush/react-native

Usage

(from: https://docs.microsoft.com/en-us/appcenter/distribution/codepush/react-native)

By default code-push checks for updates on app start.

  1. Coarse grained usage: Wrapping it around your root component:

    import codePush from "react-native-code-push";
       
    class MyApp extends Component {
    }
       
    MyApp = codePush(MyApp);
  2. Fine grained usage: You can manually call the function whenever you want the app to check for updates.

    codePush.sync({installMode: codePush.InstallMode.IMMEDIATE, ...})

Pushing Updates

appcenter codepush release-react -a <ownerName>/<appName>

How to run the app

make sure you are running NodeJS (https://nodejs.org/) and have the Android Studio or Android SDK Tools (https://developer.android.com/studio) installed.

Contents

| Tutorial | Description | Screenshot |:-|:-|-| | Push | Send push notifications to your app users | image | | CodePush | Deploy mobile app updates directly to their users’ devices | image |

Other useful information

  1. By default or when you use the code below,

codePush.sync({updateDialog: true, ... });

if user wishes to ignore an update, then he/she will again get the update prompt when the function is called again. A common usecase for this can be an check update button.

  1. You can push a mandatory update using appcenter codepush release-react -a t-susin-microsoft.com/RNTest -m --description "Some changelog"

In this case the user will be forced to update the app. More on this @ https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli#releasing-updates-react-native

  1. Updates can be rolled out to a percentage of users using -r option. But please read this section: https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli#rollout-parameter

  2. Also read https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli#promoting-updates for promoting releases from one deployment to the other.

  3. Broken updates can be rolled back too. Using: https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli#rolling-back-updates