Skip to content

Instantly share code, notes, and snippets.

@hayanisaid
Last active May 5, 2021 22:20
Show Gist options
  • Select an option

  • Save hayanisaid/a5e51e65acffc7559860638d3c6fc40c to your computer and use it in GitHub Desktop.

Select an option

Save hayanisaid/a5e51e65acffc7559860638d3c6fc40c to your computer and use it in GitHub Desktop.
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