decord/source/modules/tti_analytics/native/TTIFirstContentfulPaint.tsx
2026-08-12 06:57:52 +00:00

31 lines
1.2 KiB
TypeScript

// Module ID: 11354
// Function ID: 11355
// Name: TTIFirstContentfulPaint
// Dependencies: [19, 21, 4200, 9, 7168, 11355, 2]
// Exports: TTIFirstContentfulPaint
// Module 11354 (TTIFirstContentfulPaint)
import noop from "noop";
import { jsx } from "jsxProd";
const require = arg1;
const result = require("getRootNavigationRef").fileFinishedImporting("modules/tti_analytics/native/TTIFirstContentfulPaint.tsx");
export const TTIFirstContentfulPaint = function TTIFirstContentfulPaint(checkFocusedScreen) {
checkFocusedScreen = checkFocusedScreen.checkFocusedScreen;
const items = [checkFocusedScreen];
const onMeasurement = React.useCallback((nativeEvent) => {
if (null != checkFocusedScreen) {
const rootNavigationRef = checkFocusedScreen(outer1_2[2]).getRootNavigationRef();
let currentRoute;
if (rootNavigationRef != null) {
currentRoute = rootNavigationRef.getCurrentRoute();
}
const obj = checkFocusedScreen(outer1_2[2]);
}
const firstContentfulPaint = outer1_1(outer1_2[3]).firstContentfulPaint;
firstContentfulPaint.record(nativeEvent.nativeEvent.timestamp);
checkFocusedScreen(outer1_2[4]).notifyAboutTTI();
}, items);
return jsx(checkFocusedScreen(11355).TTIMeasurementView, { onMeasurement });
};