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

32 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 10057
// Function ID: 77659
2026-07-20 16:05:17 +00:00
// Name: TTIFirstContentfulPaint
2026-07-24 07:16:23 +00:00
// Dependencies: [31, 33, 3982, 14, 6909, 10058, 2]
2026-07-20 16:05:17 +00:00
// Exports: TTIFirstContentfulPaint
2026-07-24 07:16:23 +00:00
// Module 10057 (TTIFirstContentfulPaint)
2026-07-23 10:11:24 +00:00
import result from "result";
import { jsx } from "jsxProd";
const require = arg1;
const result = require("getRootNavigationRef").fileFinishedImporting("modules/tti_analytics/native/TTIFirstContentfulPaint.tsx");
2026-07-20 16:05:17 +00:00
export const TTIFirstContentfulPaint = function TTIFirstContentfulPaint(checkFocusedScreen) {
checkFocusedScreen = checkFocusedScreen.checkFocusedScreen;
const items = [checkFocusedScreen];
const onMeasurement = React.useCallback((nativeEvent) => {
if (null != checkFocusedScreen) {
2026-07-23 10:11:24 +00:00
const rootNavigationRef = checkFocusedScreen(outer1_2[2]).getRootNavigationRef();
2026-07-20 16:05:17 +00:00
let currentRoute;
if (null != rootNavigationRef) {
currentRoute = rootNavigationRef.getCurrentRoute();
}
2026-07-23 10:11:24 +00:00
const obj = checkFocusedScreen(outer1_2[2]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const firstContentfulPaint = outer1_1(outer1_2[3]).firstContentfulPaint;
2026-07-20 16:05:17 +00:00
firstContentfulPaint.record(nativeEvent.nativeEvent.timestamp);
2026-07-23 10:11:24 +00:00
checkFocusedScreen(outer1_2[4]).notifyAboutTTI();
2026-07-20 16:05:17 +00:00
}, items);
2026-07-24 07:16:23 +00:00
return jsx(checkFocusedScreen(10058).TTIMeasurementView, { onMeasurement });
2026-07-20 16:05:17 +00:00
};