File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
samples/react-native/src/Screens Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const HomeScreen = (props: Props) => {
39
39
'home_mount_time' ,
40
40
timestampInSeconds ( ) - componentMountStartTimestamp ,
41
41
{
42
- unit : " seconds" ,
42
+ unit : ' seconds' ,
43
43
} ,
44
44
) ;
45
45
}
Original file line number Diff line number Diff line change @@ -40,11 +40,9 @@ const TrackerScreen = () => {
40
40
} ;
41
41
42
42
const onRefreshButtonPress = ( ) => {
43
- Sentry . metrics . increment (
44
- 'tracker_screen.refresh_button_press' ,
45
- 1 ,
46
- { tags : { graph : 'none' , public_data : true } } ,
47
- ) ;
43
+ Sentry . metrics . increment ( 'tracker_screen.refresh_button_press' , 1 , {
44
+ tags : { graph : 'none' , public_data : true } ,
45
+ } ) ;
48
46
loadData ( ) ;
49
47
} ;
50
48
@@ -80,7 +78,11 @@ const TrackerScreen = () => {
80
78
< ActivityIndicator size = "small" color = "#F6F6F8" />
81
79
) }
82
80
</ View >
83
- < Button sentry-label = "refresh" title = "Refresh" onPress = { onRefreshButtonPress } />
81
+ < Button
82
+ sentry-label = "refresh"
83
+ title = "Refresh"
84
+ onPress = { onRefreshButtonPress }
85
+ />
84
86
</ View >
85
87
) ;
86
88
} ;
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ export {
45
45
getClient ,
46
46
setCurrentClient ,
47
47
addEventProcessor ,
48
-
49
48
metrics ,
50
49
} from '@sentry/core' ;
51
50
You can’t perform that action at this time.
0 commit comments