New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rnkit-code-push

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rnkit-code-push

push code to your react native apps

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

npm react-native MIT bitHound Score Downloads

Push code updates to your react-native apps. React Native.

Support me with a Follow

Getting Started

First, cd to your RN project directory, and install RNMK through rnpm . If you don't have rnpm, you can install RNMK from npm with the command npm i -S rnkit-code-push and link it manually (see below).

iOS

  • React Native < 0.29 (Using rnpm)

    rnpm install rnkit-code-push

  • React Native >= 0.29

    $npm install -S rnkit-code-push

    $react-native link rnkit-code-push

Manually

  • Add node_modules/rnkit-code-push/ios/RNKitCodePush.xcodeproj to your xcode project, usually under the Libraries group
  • Add libRNKitASPickerView.a (from Products under RNKitCodePush.xcodeproj) to build target's Linked Frameworks and Libraries list

Android

  • React Native < 0.29 (Using rnpm)

    rnpm install rnkit-code-push

  • React Native >= 0.29

    $npm install -S rnkit-code-push

    $react-native link rnkit-code-push

Manually

  • JDK 7+ is required
  • Android NDK is required
  • Add the following snippet to your android/settings.gradle:
include ':rnkit-code-push'
project(':rnkit-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/rnkit-code-push/android')

  • Declare the dependency in your android/build.gradle
dependencies {
    ...
    compile project(':rnkit-code-push')
}

  • Import import io.rnkit.codepush.UpdatePackage; and register it in your MainActivity (or equivalent, RN >= 0.32 MainApplication.java):
@Override
protected List<ReactPackage> getPackages() {
    return Arrays.asList(
            new MainReactPackage(),
            new UpdatePackage()
    );
}

Finally, you're good to go, feel free to require rnkit-code-push in your JS files.

Have fun! :metal:

Documentation

Contribution

Thanks

@reactnativecn - react-native-pushy ReactNative中文网推出的代码热更新服务

此项目代码fork自 react-native-pushy

Questions

Feel free to contact me or create an issue

made with ♥

Keywords

react

FAQs

Package last updated on 13 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts