@@ -37,10 +37,6 @@ export default class ProfileScreen extends React.Component {
3737 this . mixpanel . getPeople ( ) . unset ( "a" ) ;
3838 }
3939
40- incrementProperties = ( ) => {
41- this . mixpanel . getPeople ( ) . increment ( { "a" : 1.2 , "b" : 3 } ) ;
42- }
43-
4440 incrementProperty = ( ) => {
4541 this . mixpanel . getPeople ( ) . increment ( "a" , 1.2 ) ;
4642 }
@@ -54,7 +50,7 @@ export default class ProfileScreen extends React.Component {
5450 }
5551
5652 unionProperties = ( ) => {
57- this . mixpanel . getPeople ( ) . union ( { "a" : [ "goodbye" , "hi" ] , "c" : [ "hello" ] } ) ;
53+ this . mixpanel . getPeople ( ) . union ( "a" , [ "goodbye" , "hi" ] ) ;
5854 }
5955
6056 trackChargeWithoutProperties = ( ) => {
@@ -113,11 +109,6 @@ export default class ProfileScreen extends React.Component {
113109 < Text style = { styles . buttonText } > Unset Properties</ Text >
114110 </ TouchableOpacity >
115111 </ View >
116- < View style = { { flexDirection : 'row' , justifyContent : 'space-between' } } >
117- < TouchableOpacity style = { styles . button } onPress = { this . incrementProperties } >
118- < Text style = { styles . buttonText } > Increment Properties</ Text >
119- </ TouchableOpacity >
120- </ View >
121112 < View style = { { flexDirection : 'row' , justifyContent : 'space-between' } } >
122113 < TouchableOpacity style = { styles . button } onPress = { this . incrementProperty } >
123114 < Text style = { styles . buttonText } > Increment Property</ Text >
@@ -134,7 +125,7 @@ export default class ProfileScreen extends React.Component {
134125 </ TouchableOpacity >
135126 </ View >
136127 < View style = { { flexDirection : 'row' , justifyContent : 'space-between' } } >
137- < TouchableOpacity style = { styles . button } onPress = { this . identify } >
128+ < TouchableOpacity style = { styles . button } onPress = { this . unionProperties } >
138129 < Text style = { styles . buttonText } > Union Properties</ Text >
139130 </ TouchableOpacity >
140131 </ View >
0 commit comments