Skip to content

Instantly share code, notes, and snippets.

console.log('test')
@lexlemmens
lexlemmens / App.js
Created May 31, 2019 06:54
Removing a To Do item
import * as React from 'react';
import { StatusBar, View, TextInput, Text, FlatList, TouchableOpacity } from 'react-native';
import { LinearGradient } from 'expo';
export default class App extends React.Component {
state = {
inputValue: '',
todos: []
};
@lexlemmens
lexlemmens / App.js
Created May 21, 2019 05:21
Adding items to the to do list
import * as React from 'react';
import { StatusBar, View, TextInput, Text, FlatList, TouchableOpacity } from 'react-native';
import { LinearGradient } from 'expo';
export default class App extends React.Component {
state = {
inputValue: '',
todos: []
};
@lexlemmens
lexlemmens / App.js
Created May 20, 2019 14:45
App.js - update new value
import * as React from 'react';
import { StatusBar, View, TextInput } from 'react-native';
import { LinearGradient } from 'expo';
export default class App extends React.Component {
state = {
inputValue: ''
};
changeText = value => {
@lexlemmens
lexlemmens / App.js
Last active May 20, 2019 14:29
Default empty value To Do App
import * as React from 'react';
import { StatusBar, View, TextInput } from 'react-native';
import { LinearGradient } from 'expo';
export default class App extends React.Component {
state = {
inputValue: ''
};
render() {
@lexlemmens
lexlemmens / App.js
Created May 20, 2019 12:08
App.js - state default empty value
import * as React from 'react';
import { StatusBar, View, TextInput } from 'react-native';
import { LinearGradient } from 'expo';
export default class App extends React.Component {
state = {
inputValue: ''
};
render() {
@lexlemmens
lexlemmens / App.js
Created May 20, 2019 11:49
Text Input for App.js
import * as React from 'react';
import { StatusBar, View, TextInput } from 'react-native';
import { LinearGradient } from 'expo';
export default class App extends React.Component {
state = {
inputValue: ''
};
render() {
@lexlemmens
lexlemmens / App.js
Last active May 20, 2019 11:32
App.js - step two
import * as React from 'react';
import { StatusBar } from 'react-native';
import { LinearGradient } from 'expo';
export default class App extends React.Component {
render() {
return (
<LinearGradient colors={['#667eea', '#764ba2']} style={{ flex:1 }}>
<StatusBar barStyle="light-content" />
</LinearGradient>
@lexlemmens
lexlemmens / App.js
Created May 20, 2019 11:11
Clean slate of App.js react native mobile app
import * as React from 'react';
import { Text, View, StyleSheet } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View>
</View>
);