Skip to content

HeligPfleigh/sns-mobile

Repository files navigation

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();
}

About

A social network for connecting apartment citizens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •