Push code updates to your react-native apps.
OTHER License
Push code updates to your react-native apps. React Native.
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).
rnpm install rnkit-code-push
$npm install -S rnkit-code-push
$react-native link rnkit-code-push
node_modules/rnkit-code-push/ios/RNKitCodePush.xcodeproj
to your xcode project, usually under the Libraries
grouplibRNKitASPickerView.a
(from Products
under RNKitCodePush.xcodeproj
) to build target's Linked Frameworks and Libraries
listrnpm install rnkit-code-push
$npm install -S rnkit-code-push
$react-native link rnkit-code-push
android/settings.gradle
:include ':rnkit-code-push'
project(':rnkit-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/rnkit-code-push/android')
android/build.gradle
dependencies {
...
compile project(':rnkit-code-push')
}
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! 🤘
@reactnativecn - react-native-pushy ReactNative
fork react-native-pushy
Feel free to contact me or create an issue
made with