Skip to content

Instantly share code, notes, and snippets.

View patcito's full-sized avatar

Patrick Aljord patcito

View GitHub Profile
import React from 'react';
import { Image, View, Text, TextInput, LayoutAnimation } from 'react-native';
import KeyboardEventListener from '../util/KeyboardEventListener';
export default class AuthenticationScreen extends React.Component {
state = {
keyboardHeight: 0,
}
componentDidMount() {
import React, { Component } from "react";
import { StyleSheet, View, Text, PanResponder } from "react-native";
export default class Swipeable extends Component {
state = {
dragging: false,
offsetTop: 0,
offsetLeft: 0
};
import React from "react";
import { Constants } from "expo";
import {
TextInput,
ScrollView,
View,
Text,
StyleSheet,
StatusBar,
Button,
import React from 'react';
import { Constants } from 'expo';
import {
TextInput,
ScrollView,
View,
Text,
StyleSheet,
StatusBar,
} from 'react-native';
import React from "react";
import { SectionList, StyleSheet, Text, View, Image } from "react-native";
import ToggleButton from "../components/ToggleButton";
const thursdaySections = [
{
key: "8:30 AM",
data: [{ key: 0, title: "Registration, breakfast" }]
},
{
import React from "react";
import { SectionList, StyleSheet, Text, View, Image } from "react-native";
import ToggleButton from "../components/ToggleButton";
const thursdaySections = [
{
key: "8:30 AM",
data: [{ key: 0, title: "Registration, breakfast" }]
},
{
const thursdaySections = [
{
id: "8:30 AM",
data: [{ id: 0, title: "Registration, breakfast" }]
},
{
id: "10:00 AM",
data: [{ id: 0, title: "Conference Keynote", speaker: "Lucy Vatne" }]
}
];
import React from "react";
import { StyleSheet, Text, View, Image, TouchableOpacity } from "react-native";
export default class ToggleButton extends React.Component {
renderItem = (item, index, list) => {
const { onPressItem, value } = this.props;
return (
<TouchableOpacity
onPress={onPressItem.bind(this, item)}
import React from "react";
import { StyleSheet, Text, View, Image } from "react-native";
import ToggleButton from "../components/ToggleButton";
export default class Schedule extends React.Component {
state = {
selectedDay: "THURSDAY"
};
handlePressItem = item => {
import React from "react";
import { StyleSheet, Text, View, Image, TouchableOpacity } from "react-native";
export default class ToggleButton extends React.Component {
renderItem = (item, index, list) => {
return (
<View
style={[
styles.button,
{