-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathApp.tsx
More file actions
37 lines (33 loc) · 846 Bytes
/
App.tsx
File metadata and controls
37 lines (33 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import { View, StyleSheet } from 'react-native';
import { initOptic } from './src';
import { Overlay } from './src/overlay/Overlay';
import { RenderTest } from './src/components/RenderTest';
import { OpticProvider } from './src/providers/OpticProvider';
import { initRenderTracking } from './src/metrics/globalRenderTracking';
// Initialize Optic with all metrics enabled
initOptic({
enabled: true,
network: true,
startup: true,
reRenders: true,
traces: true
});
// Initialize re-render tracking
initRenderTracking();
export default function App() {
return (
<OpticProvider>
<View style={styles.container}>
<RenderTest />
<Overlay />
</View>
</OpticProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
});