Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo
/** | |
* @flow | |
*/ | |
import RNFetchBlob from 'react-native-fetch-blob' | |
const DocumentDir = RNFetchBlob.fs.dirs.DocumentDir | |
const storagePath = `${DocumentDir}/persistStore` | |
const encoding = 'utf8' |
import axios from "axios"; | |
class HttpService { | |
constructor() { | |
const token = window.localStorage.getItem("token"); | |
const service = axios.create({ | |
baseURL: process.env.REACT_APP_API_URL, | |
headers: token | |
? { | |
Authorization: `Bearer ${token}`, |
Profile | download (kb/s) | upload (kb/s) | latency (ms) |
---|---|---|---|
Native | 0 | 0 | 0 |
GPRS | 50 | 20 | 500 |
56K Dial-up | 50 | 30 | 120 |
Mobile EDGE | 240 | 200 | 840 |
2G Regular | 250 | 50 | 300 |
2G Good | 450 | 150 | 150 |
3G Slow | 780 | 330 | 200 |