-
-
Save uokesita/394287f1df95787c4c81d4d39f7dad3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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