A React Native Starter Kit with NativeBase + React Navigation + Redux Apps (iOS & Android)
-
Globally installed node
-
Globally installed react-native CLI
On the command prompt run the following commands
$ git clone http://... sns-mobile
$ cd sns-mobile/
$ npm install
or
yarn
- Opt #1:
- Run
npm start
in your terminal - Scan the QR code in your Expo app
- Run
- Opt #2:
- Run
npm run ios
in your terminal
- Run
- Opt #1:
- Run
npm start
in your terminal - Scan the QR code in your Expo app
- Run
- Opt #2:
- Run
npm run android
in your
- Run
- Because
subscriptions-transport-ws
version0.9.8
isn't supportPromise
inconnectionParams
, I suggest a temporary approach (be patient to wait later version =_=): - After run
npm install
, go tonode_modules/subscriptions-transport-ws/dist/client.js
and changeSubscriptionClient.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();
}