Skip to content

Instantly share code, notes, and snippets.

@jhalborg
jhalborg / graphcool-firebase-auth.js
Created July 21, 2017 11:43
GraphCool + Firebase Auth function for generating a custom Firebase token with embedded Graphcool token
import * as admin from 'firebase-admin';
import Graphcool, { fromEvent } from 'graphcool-lib';
import { Request, Response } from 'express';
const TAG = 'LoginHandler';
const serviceAccount = require('./path/to/firebaseKey.json');
const pat = '__PAT__'
@jhalborg
jhalborg / FeedList.tsx
Last active February 14, 2018 10:55
Gist describing issue with Animated.Value in redux
const AnimatedFlatlist = Animated.createAnimatedComponent(FlatList);
...
render() {
return (
<View style={styles.container}>
<AnimatedFlatlist
scrollEventThrottle={16}
onScroll={Animated.event(