Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
// Module ID: 11927
|
|
// Function ID: 11928
|
|
// Name: TTIFirstContentfulPaint
|
|
// Dependencies: [19, 21, 4432, 9, 7681, 11928, 2]
|
|
// Exports: TTIFirstContentfulPaint
|
|
|
|
// Module 11927 (TTIFirstContentfulPaint)
|
|
import TTITrackerDefault from "TTITracker" /* 9 */;
|
|
import RootNavigationRef from "RootNavigationRef" /* 4432 */;
|
|
import PostTTIScheduler from "PostTTIScheduler" /* 7681 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/tti_analytics/native/TTIFirstContentfulPaint.tsx");
|
|
|
|
export const TTIFirstContentfulPaint = function TTIFirstContentfulPaint(checkFocusedScreen) {
|
|
checkFocusedScreen = checkFocusedScreen.checkFocusedScreen;
|
|
const items = [checkFocusedScreen];
|
|
const onMeasurement = noop.useCallback((nativeEvent) => {
|
|
if (null != checkFocusedScreen) {
|
|
const rootNavigationRef = RootNavigationRef.getRootNavigationRef();
|
|
let currentRoute;
|
|
if (rootNavigationRef != null) {
|
|
currentRoute = rootNavigationRef.getCurrentRoute();
|
|
}
|
|
}
|
|
const firstContentfulPaint = TTITrackerDefault.firstContentfulPaint;
|
|
firstContentfulPaint.record(nativeEvent.nativeEvent.timestamp);
|
|
PostTTIScheduler.notifyAboutTTI();
|
|
}, items);
|
|
return jsx(checkFocusedScreen(11928).TTIMeasurementView, { onMeasurement });
|
|
};
|