Skip to content

Instantly share code, notes, and snippets.

View kenwheeler's full-sized avatar
🌭
PRs Welcome

Ken Wheeler kenwheeler

🌭
PRs Welcome
View GitHub Profile
class Whatever extends React.Component {
constructor(props) {
super(props);
this.state = {
a: 5 + props.b;
};
this.offset = 0;
this.someEvent = this.someEvent.bind(this);
}
componentWillReceiveProps(nextProps) {
import React, { Component } from 'react';
import {
FlatList,
StyleSheet,
Text,
View,
Platform,
ActivityIndicator,
} from 'react-native';