-
Upgrade Expo:
npm i -g exp
. -
Open Expo XDE & start a new project.
-
Copy the
expo
,react
, &react-native
versions from thepackage.json
file into your current project. -
Upgrade any other packages that might be stale. Especially things like
react-navigation
,react-native-elements
, or any other Expo-specific packages. -
Delete
node_modules
folder,package-lock.json
, and/oryarn.lock
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"Print to console": { | |
"scope": "javascript,typescript", | |
"prefix": "log", | |
"body": [ | |
"console.log('$1', $2);" | |
], | |
"description": "Log output to console" | |
}, | |
"prettier": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.availability = (event, context, cb) => { | |
context.callbackWaitsForEmptyEventLoop = false; | |
console.log(event, context); | |
return cb(null, { | |
dialogAction: { | |
type: "Close", | |
fulfillmentState: "Fulfilled", | |
message: { | |
contentType: "PlainText", | |
content: "Response from availability lambda" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.center-table { | |
height: 100%; | |
width: 100%; | |
display: table; | |
} | |
.center-cell { | |
position: relative; | |
display: table-cell; | |
vertical-align: middle; | |
text-align: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const FullHeightPage = () => ( | |
<div> | |
Hello World! | |
<style global jsx>{` | |
html, | |
body, | |
body > div:first-child, | |
div#__next, | |
div#__next > div { | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import ReactDOM from "react-dom"; | |
import auth0 from "auth0-js"; | |
class App extends Component { | |
constructor(props, cxt) { | |
super(props, cxt); | |
this.componentDidMount = this.componentDidMount.bind(this); | |
this._login = this._login.bind(this); | |
const auth = new auth0.WebAuth({ |
I hereby claim:
- I am dmurawsky on github.
- I am drmurawsky (https://keybase.io/drmurawsky) on keybase.
- I have a public key ASAIzWQBKKkZq8uP71GLE8qcEB3CemKLCzLnnG6wcwhWzgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require('firebase-functions') | |
const admin = require('firebase-admin') | |
admin.initializeApp(functions.config().firebase) | |
exports.hourly = functions.https.onRequest((req, res) => { | |
const expiration = Date.now() + * 60 * 60 / 1000 // At least an hour old in seconds | |
const ref = admin.database().ref("space") | |
ref.orderByKey("timestamp").endAt(expiration).once("event", snap => { | |
const vals = snap.val() | |
Object.keys(vals).map(key => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const Populate_Index_ES6 = () => { | |
const path = __dirname + '/src/dir'; | |
// Read directory | |
fs.readdir(path + '/components', (err, items) => { | |
let output = ''; | |
// Add import statements for each file | |
for (let i=0; i<items.length; i++) { | |
let file = items[i].substring(0, items[i].length-3); |