Skip to content

Latest commit

 

History

History
executable file
·
59 lines (41 loc) · 1.63 KB

README.md

File metadata and controls

executable file
·
59 lines (41 loc) · 1.63 KB

The SNS v1.0.0

A React Native Starter Kit with NativeBase + React Navigation + Redux Apps (iOS & Android)

Get Started

1. System Requirements

2. Installation

On the command prompt run the following commands

$ git clone http://... sns-mobile

$ cd sns-mobile/

$ npm install
  or
  yarn

Run on iOS

  • Opt #1:
    • Run npm start in your terminal
    • Scan the QR code in your Expo app
  • Opt #2:
    • Run npm run ios in your terminal

Run on Android

  • Opt #1:
    • Run npm start in your terminal
    • Scan the QR code in your Expo app
  • Opt #2:
    • Run npm run android in your

Note

  • Because subscriptions-transport-ws version 0.9.8 isn't support Promise in connectionParams, I suggest a temporary approach (be patient to wait later version =_=):
  • After run npm install, go to node_modules/subscriptions-transport-ws/dist/client.js and change SubscriptionClient.prototype.connect like this
if (typeof _this.connectionParams === 'function') {
    Promise.resolve(_this.connectionParams()).then((payload) => {
        _this.sendMessage(undefined, 'connection_init', payload);
        _this.flushUnsentMessagesQueue();
        });
    } else {
        _this.sendMessage(undefined, 'connection_init', _this.connectionParams);
        _this.flushUnsentMessagesQueue();
}