React Native enabled Xcode template for iMessage App using BundleBus
ReactNativeiMessageApp is a Xcode template project for iMessage Application which has enabled the React Native and BundleBus.
-
Download repository
-
Run BundleBus_backend.
-
install brew, watchman
> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
> brew update
> brew install watchman
> cd ReactNativeiMessageApp/rnMessage
> npm install
> react-native link
- Run below command.
> bundlebus server <http://youraddress:port>
register
command will registers your react-native app to the server.
- Run below command from your react-native-app root folder where
package.json
reside.
> bundlebus register
Repository clone url : {Enter your github repository}
Repository - github token : {Enter your github token}
- Guthub token can be created from this link.
release
command will pull your sources from the github and build it.
- Run below command from your react-native-app root folder where
package.json
reside.
> bundlebus release <os>
where os should be android
or ios
.
- the BundleBus server will pull the git sources and build it.
- Once the app is ready to be published, use
deploy
command to simply do the job.
- Run below command from your project root folder where
package.json
reside.
> bundlebus deploy <os>
- appKey be used as "AccesKey" in '.bundlebus.config'.
- "AccessKey" can be confirmed by below command.
> cat .bundlebus.config
- moduleName is equal to "name" in 'package.json'
- Open the Xcode project
- Modify appkey and moduleName in MessagesViewController.m
NSString *appKey = @"YOUR_BUNDLEBUS_APP_KEY";
BundleBus *bundlebus = [[BundleBus alloc] init];
[bundlebus silentUpdate:appKey];
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"YOUR_REACTNATIVE_APP_NAME"
initialProperties:nil
launchOptions:nil];
- Build by Xcode