'use strict' | |
import React, { Component } from 'react' | |
import PropTypes from 'prop-types' | |
class LazyImg extends Component { | |
constructor () { | |
super() | |
this.state = { loaded: false } | |
this.img = {} |
//Usage | |
import React from 'react'; | |
import { BrowserRouter as Router } from 'react-router-dom'; | |
import Route from './AuthRoute'; | |
import Login from './Login'; | |
import Private from './Private'; | |
export default () => | |
<Router> |
{ | |
"Create Panresponder": { | |
"prefix": "pancreate", | |
"body": [ | |
"PanResponder.create({", | |
" onStartShouldSetPanResponder: (evt, gestureState) => true,", | |
" onMoveShouldSetPanResponder: (evt, gestureState) => true,", | |
" onPanResponderGrant: (e, gestureState) => {", | |
" ", | |
" },", |
import Inferno from 'inferno' | |
import Component from 'inferno-component' | |
import {connect} from 'cerebral/inferno' | |
import {state} from 'cerebral/tags' | |
import InvalidRoute from './InvalidRoute' | |
export default connect({ | |
media: state`useragent.media`, | |
invalidRoute: state`app.invalidRoute` | |
}, |
You probably arrived here because of a curt message in response to an issue you filed on a repo that I contribute to. Sorry about that (particularly if you filed the issue long ago and have been waiting patiently for a response). Let me explain:
I work on a lot of different open source projects. I really do like building software that makes other people's lives easier, but it's crazy time-consuming. One of the most time-consuming parts is responding to issues. A lot of OSS maintainers will bend over backwards to try and understand your specific problem and diagnose it, to the point of setting up new test projects, fussing around with different Node versions, reading the documentation for build tools that we don't use, debugging problems in third party dependencies that appear to be involved in the problem... and so on. I've personally spent hundreds of hours of my free time doing these sorts of things to try and help people out, because I want to be a responsible maintainer and I
import _ from 'lodash' | |
import { Dimensions, PixelRatio } from 'react-native' | |
import { platformIsIos } from 'expresso-common/common/platform' | |
const { height } = Dimensions.get('window') | |
const iphone6Height = 667 | |
const pixelRatio = PixelRatio.get() | |
const fieldsToNormalize = [ | |
'fontSize', | |
'lineHeight', |
const { parse, visit, print, Kind, BREAK } = require('graphql/language'); | |
const { buildASTSchema } = require('graphql/utilities'); | |
const { addResolveFunctionsToSchema } = require('graphql-tools'); | |
const Sequelize = require('sequelize'); | |
const { graphql } = require('graphql'); | |
const jexl = require('jexl'); | |
const deepAssign = require('deep-assign'); | |
const { resolver: sequelizeResolver } = require('graphql-sequelize'); | |
const { inspect } = require('util'); |
extension AXError: Error { } | |
// For some reason values don't get described in this enum, so we have to do it manually. | |
extension AXError: CustomStringConvertible { | |
fileprivate var valueAsString: String { | |
switch (self) { | |
case .success: | |
return "Success" | |
case .failure: | |
return "Failure" |