Giter Site home page Giter Site logo

bdart / reactnativeimessageapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zenome/reactnativeimessageapp

0.0 2.0 0.0 142 KB

React Native enabled Xcode template for iMessage App

License: MIT License

JavaScript 59.86% Objective-C 40.14%

reactnativeimessageapp's Introduction

ReactNativeiMessageApp

React Native enabled Xcode template for iMessage App using BundleBus
iMessageApp with Bundlebus

ReactNativeiMessageApp is a Xcode template project for iMessage Application which has enabled the React Native and BundleBus.

How to

Prerequisite

> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
> brew update
> brew install watchman

How to install

> cd ReactNativeiMessageApp/rnMessage
> npm install
> react-native link

Set backend server address

  • Run below command.
> bundlebus server <http://youraddress:port>

Register

  • register command will registers your react-native app to the server.

Command

  • 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

  • release command will pull your sources from the github and build it.

Command

  • 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.

Deploy

  • Once the app is ready to be published, use deploy command to simply do the job.

Command

  • Run below command from your project root folder where package.json reside.
> bundlebus deploy <os>

Run iOS App

Modify appkey and moduleName

  • 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

  • Build by Xcode

reactnativeimessageapp's People

Contributors

formep99 avatar

Watchers

 avatar  avatar

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.