@@ -3,9 +3,10 @@ import type { HomeStackParamList } from '../../navigation/HomeStack';
3
3
import React , { useState } from 'react' ;
4
4
import { ListTile } from '../../components/ListTile' ;
5
5
import { Screen } from '../../components/Screen' ;
6
- import { Text , Switch } from 'react-native' ;
6
+ import { StyleSheet , Switch , Text , View } from 'react-native' ;
7
7
import { APM } from 'instabug-reactnative' ;
8
8
import { showNotification } from '../../utils/showNotification' ;
9
+ import CustomGap from '../../components/CustomGap' ;
9
10
10
11
export const APMScreen : React . FC < NativeStackScreenProps < HomeStackParamList , 'APM' > > = ( {
11
12
navigation,
@@ -17,16 +18,26 @@ export const APMScreen: React.FC<NativeStackScreenProps<HomeStackParamList, 'APM
17
18
APM . setEnabled ( value ) ;
18
19
showNotification ( 'APM status' , 'APM enabled set to ' + value ) ;
19
20
} ;
21
+ const styles = StyleSheet . create ( {
22
+ switch : {
23
+ flexDirection : 'row' ,
24
+ justifyContent : 'space-between' ,
25
+ } ,
26
+ } ) ;
20
27
21
28
return (
22
29
< Screen >
23
- < Text > Enable APM:</ Text >
24
- < Switch onValueChange = { toggleSwitch } value = { isEnabled } />
30
+ < View style = { styles . switch } >
31
+ < Text > Enable APM:</ Text >
32
+ < Switch onValueChange = { toggleSwitch } value = { isEnabled } />
33
+ </ View >
34
+ { CustomGap . smallV }
25
35
< ListTile title = "End App launch" onPress = { ( ) => APM . endAppLaunch ( ) } />
26
36
< ListTile title = "Network Screen" onPress = { ( ) => navigation . navigate ( 'NetworkTraces' ) } />
27
37
< ListTile title = "Traces" onPress = { ( ) => navigation . navigate ( 'ExecutionTraces' ) } />
28
38
< ListTile title = "Flows" onPress = { ( ) => navigation . navigate ( 'AppFlows' ) } />
29
39
< ListTile title = "WebViews" onPress = { ( ) => navigation . navigate ( 'WebViews' ) } />
40
+ < ListTile title = "Complex Views" onPress = { ( ) => navigation . navigate ( 'ComplexViews' ) } />
30
41
</ Screen >
31
42
) ;
32
43
} ;
0 commit comments