Last active
May 5, 2021 22:20
-
-
Save hayanisaid/a5e51e65acffc7559860638d3c6fc40c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 {View,Text, TouchableOpacity, TouchableHighlight} from 'react-native'; | |
| import Analytics from 'appcenter-analytics'; | |
| export default App(){ | |
| const __OnBuyButtonPressed=()=>{ | |
| Analytics.trackEvent('Purchase', { price: '9.99', type: 'cloth' }); | |
| } | |
| return( | |
| <View> | |
| <TouchableHighlight onPress={__OnBuyButtonPressed}> | |
| <View | |
| style={{ | |
| flexDirection: "row", | |
| justifyContent: "space-around" | |
| }} | |
| > | |
| <Text style={styles.signInButtonTextStyle}>Continue</Text> | |
| </View> | |
| </TouchableHighlight> | |
| </View> | |
| )} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment