Skip to content

Instantly share code, notes, and snippets.

@uokesita
Last active January 9, 2018 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uokesita/394287f1df95787c4c81d4d39f7dad3a to your computer and use it in GitHub Desktop.
Save uokesita/394287f1df95787c4c81d4d39f7dad3a to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
Button
} from 'react-native';
import firebase from 'react-native-firebase';
const firebaseAnalytics = firebase.analytics();
export default class App extends Component<{}> {
onPressComprar(){
console.log('Boton comprar presionado');
};
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
React Native Firebase!
</Text>
<Button
onPress={this.onPressComprar}
title="Cromprar"
color="#841584"
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment