Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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