31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
// Module ID: 11179
|
|
// Function ID: 11180
|
|
// Name: TTIFirstContentfulPaint
|
|
// Dependencies: [19, 21, 4107, 9, 7022, 11180, 2]
|
|
// Exports: TTIFirstContentfulPaint
|
|
|
|
// Module 11179 (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(11180).TTIMeasurementView, { onMeasurement });
|
|
};
|