Skip to content

Instantly share code, notes, and snippets.

View edipofederle's full-sized avatar
🏠
Working from home

Édipo Féderle edipofederle

🏠
Working from home
View GitHub Profile
<TouchableHighlight style={styles.button} underlayColor='#99d9f4'>
<Text style={styles.buttonText}>GO</Text>
</TouchableHighlight>
constructor(props){
super(props);
this.state = {
query: 'joel on software'
};
}
'use strict';
var React = require('react-native');
var {
StyleSheet,
Text,
TextInput,
View,
TouchableHighlight,
AppRegistry.registerComponent('RandomQuotes', () => RandomQuotes);
container: {
flex: 1
}
class RandomQuotes extends React.Component {
render() {
return (
<React.NavigatorIOS
style={styles.container}
initialRoute={
title: 'Random Quotes',
component: titleApp
}/>
);
return React.createElement(React.Text, {style: styles.text}, "Random Quotes!");
var styles = StyleSheet.create({
text: {
color: 'blue',
backgroundColor: 'white',
fontSize: 30,
margin: 80
}
});
class TitleApp extends React.Component {
render() {
return <React.Text style={styles.text}>Random Quotes</React.Text>;
}
}