jitpush
v1.0.3
Published
Push your code updated on fly without AppStore Review Proceed. // React native modules
Downloads
2
Maintainers
Readme
jitpush
Getting Started
- Initial React-Native project
- Adding this script in package.json
"build:ios": "node node_modules/react-native/local-cli/cli.js bundle --entry-file='index.ios.js' --bundle-output='./ios/_YOUR_DIRECTORY_/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'"
for pack a new jsbundle file. - run
npm install jitpush --save
- Create JSON payload file and add to project PAYLOAD_FILE
{
"version": "1.0.0",
"minContainerVersion": "1.0",
"url": {
"url": "NA",
"isRelative": true
}
}
- run
npm run-script build:ios
to compress default jsbundle file - Open Xcode Project right click on your project's Libraries folder ➜ Add Files to "Your Project Name"
- Go to node_modules ➜ jitpush➜ JitPush-IOS ➜ select
JitPush.xcodeproj
- In General tab, look for Linked Frameworks and Libraries. Click on the + button at the bottom and add
libJitPush.a
from the list. - Go to Build Settings tab and search for Header Search Paths. In the list, add
$(SRCROOT)/../node_modules/jitpush/JitPush-iOS
and selectrecursive
. - Import
JitPush.h
to appdelegate
Usage
- Implement
JitPushDelegate
- See example in sample code
- Awesome!