decord/source/modules/tti_analytics/native/TTIFirstContentfulPaint.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

31 lines
1.3 KiB
TypeScript

// Module ID: 11901
// Function ID: 11902
// Name: TTIFirstContentfulPaint
// Dependencies: [19, 21, 4418, 9, 7667, 11902, 2]
// Exports: TTIFirstContentfulPaint
// Module 11901 (TTIFirstContentfulPaint)
import closure_3 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
const require = arg1;
const result = require("set").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(closure_1_2[2]).getRootNavigationRef();
let currentRoute;
if (rootNavigationRef != null) {
currentRoute = rootNavigationRef.getCurrentRoute();
}
const obj = checkFocusedScreen(closure_1_2[2]);
}
const firstContentfulPaint = closure_1_1(closure_1_2[3]).firstContentfulPaint;
firstContentfulPaint.record(nativeEvent.nativeEvent.timestamp);
checkFocusedScreen(closure_1_2[4]).notifyAboutTTI();
}, items);
return jsx(checkFocusedScreen(11902).TTIMeasurementView, { onMeasurement });
};