Skip to content

Instantly share code, notes, and snippets.

class Node {
constructor(data, next = null){
this.data = data;
this.next = next;
}
}
class LinkedList{
constructor(){
this.head = null;
import React, { Component } from 'react';
import { ScrollView, TextInput, button, form,} from 'react-native';
import { InputText, InputCountrySelector, InputSwitch } from 'react-native-input-list';
//add Image below
import { StyleSheet, Text, View, TouchableOpacity, Alert, Image } from 'react-native';
// changes
import React, { Component } from 'react';
import { ScrollView, TextInput, button, form,} from 'react-native';
import { InputText, InputCountrySelector, InputSwitch } from 'react-native-input-list';
import { StyleSheet, Text, View, TouchableOpacity, Alert } from 'react-native';
// changes
import {Button, Tile} from 'react-native-elements';
import DatePicker from 'react-native-datepicker'
// The following are episodes for Arrested Development.
const episodes = [
{ id: 's06e01', title: 'Pilot' },
{ id: 's06e02', title: 'Top Banana' },
{ id: 's06e03', title: 'Charity Drive' },
{ id: 's06e04', title: 'Visiting Ours' },
{ id: 's06e05', title: 'My Mother, the Car' },
{ id: 's06e06', title: 'In God We Trust' },
{ id: 's06e07', title: 'Storming the castle' },
import React, { Component } from 'react';
import { View, ScrollView } from 'react-native';
import { List, ListItem } from 'react-native-elements';
class Settings extends Component {
render() {
return (
<View>
<ScrollView>
<Button
title="Settings"
buttonStyle={{ marginTop: 20 }}
/>
<List>
<ListItem
title="Email"
rightTitle={this.props.email}
hideChevron
import React, { Component } from 'react';
import { ScrollView } from 'react-native';
import { Tile, List, ListItem, Button } from 'react-native-elements';
import { me } from '../config/data';
class Me extends Component {
render() {
return (
<ScrollView>
import React, { Component } from 'react';
import {
Text,
View,
ScrollView
} from 'react-native';
import { List, ListItem } from 'react-native-elements';
import { users } from '../config/data';
import React from 'react';
import { ScrollView, Text, StyleSheet, View, TextInput, ListView } from 'react-native';
export default class App extends React.Component {
constructor(){
super();
import React from 'react';
import { ScrollView, Text, StyleSheet, View, TextInput, ListView } from 'react-native';
export default class App extends React.Component {
constructor(){
super();