feat: Upgrade to React Native 0.60.0 / CocoaPods / Android X. (#513)

BREAKING CHANGE: You should upgrade React Native. See https://facebook.github.io/react-native/blog/2019/07/03/version-60
This commit is contained in:
Dylan Vann
2019-07-04 23:49:38 -04:00
committed by GitHub
parent df769056f4
commit 5489f9ec4b
221 changed files with 3916 additions and 15655 deletions
@@ -0,0 +1,29 @@
const path = require('path')
const express = require('express')
const bodyParser = require('body-parser')
const morgan = require('morgan')
const app = express()
const port = process.env.PORT || 8080
const welcome = 'Test images API at http://localhost:' + port
console.log(welcome)
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())
app.use(morgan('dev'))
app.get('/', (req, res) => res.send(welcome))
app.listen(port)
const authentication = (req, res, next) => {
const token = req.query.token || req.headers['token']
if (token) {
next()
} else {
return res.status(403).send({ success: false })
}
}
const staticPictures = express.static(path.join(__dirname, 'pictures'))
app.use('/pictures', authentication, staticPictures)
@@ -0,0 +1,16 @@
{
"name": "ReactNativeFastImageExampleServer",
"version": "0.0.1",
"private": true,
"license": "MIT",
"main": "index.js",
"scripts": {
"start": "nodemon ./index"
},
"dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1",
"morgan": "^1.9.1",
"nodemon": "^1.19.1"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1007 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 804 KiB

File diff suppressed because it is too large Load Diff