decord/source/modules/tti_analytics/native/TTIFirstContentfulPaint.tsx

31 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 10016
// Function ID: 77401
2026-07-20 16:05:17 +00:00
// Name: TTIFirstContentfulPaint
// Dependencies: []
// Exports: TTIFirstContentfulPaint
2026-07-21 06:55:02 +00:00
// Module 10016 (TTIFirstContentfulPaint)
2026-07-20 16:05:17 +00:00
let closure_3 = importAll(dependencyMap[0]);
const jsx = arg1(dependencyMap[1]).jsx;
const result = arg1(dependencyMap[6]).fileFinishedImporting("modules/tti_analytics/native/TTIFirstContentfulPaint.tsx");
export const TTIFirstContentfulPaint = function TTIFirstContentfulPaint(checkFocusedScreen) {
checkFocusedScreen = checkFocusedScreen.checkFocusedScreen;
const arg1 = checkFocusedScreen;
const items = [checkFocusedScreen];
const onMeasurement = React.useCallback((nativeEvent) => {
if (null != checkFocusedScreen) {
const rootNavigationRef = checkFocusedScreen(closure_2[2]).getRootNavigationRef();
let currentRoute;
if (null != rootNavigationRef) {
currentRoute = rootNavigationRef.getCurrentRoute();
}
const obj = checkFocusedScreen(closure_2[2]);
}
const firstContentfulPaint = callback(closure_2[3]).firstContentfulPaint;
firstContentfulPaint.record(nativeEvent.nativeEvent.timestamp);
checkFocusedScreen(closure_2[4]).notifyAboutTTI();
}, items);
return jsx(arg1(dependencyMap[5]).TTIMeasurementView, { onMeasurement });
};