Giter VIP home page Giter VIP logo

rnkit-code-push's Introduction

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

  1. Add node_modules/rnkit-code-push/ios/RNKitCodePush.xcodeproj to your xcode project, usually under the Libraries group
  2. 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

  1. JDK 7+ is required
  2. Android NDK is required
  3. 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')
  1. Declare the dependency in your android/build.gradle
dependencies {
    ...
    compile project(':rnkit-code-push')
}
  1. 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! 🤘

Documentation

Contribution

Thanks

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

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

Questions

Feel free to contact me or create an issue

made with ♥

rnkit-code-push's People

Contributors

aevit avatar simman avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

aevit tony0511

rnkit-code-push's Issues

安卓热更新后图片不显示

上次的提交 d1fa9a3 修复安卓解压资源文件很慢的问题, 存在严重的问题,为了优化替换速度,没有考虑到游标的问题,导致没有匹配到对应的图片,更新后无法显示图片。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.