-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
44 lines (36 loc) · 1.29 KB
/
App.tsx
File metadata and controls
44 lines (36 loc) · 1.29 KB
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
38
39
40
41
42
43
44
import React, { useCallback, useState } from 'react';
import { StyleSheet, Text, View } from 'react-native';
// import {ListsProfiler, FlatListPerformanceView} from '@shopify/react-native-performance-lists-profiler';
// import {RenderPassReport, PerformanceProfiler} from '@shopify/react-native-performance';
import { Dimensions } from 'react-native'
import Flight from './src/flights/FlightsPage'
import DataModelList from './src/DataModelList';
import FlashList from './src/Flashlist'
const App = () => {
const onInteractiveCallback = useCallback((TTI: number, listName: string) => {
console.log(`${listName}'s TTI: ${TTI}`);
}, []);
const onBlankAreaCallback = useCallback((offsetStart: number, offsetEnd: number, listName: string) => {
console.log(`Blank area for ${listName}: ${Math.max(offsetStart, offsetEnd)}`);
}, []);
return (
<>
<DataModelList />
{/* <Flight /> */}
{/* <FlashList /> */}
</>
)
// return (
// // <PerformanceProfiler>
// <ListsProfiler
// onInteractive={onInteractiveCallback}
// onBlankArea={onBlankAreaCallback}
// >
// {/* <DataModelList /> */}
// {/* <Flight /> */}
// <FlashList />
// </ListsProfiler>
// // </PerformanceProfiler>
// );
};
export default App;