MCPcopy Create free account
hub / github.com/chart-kit/react-native-chart-kit-example / tick

Function tick

benchmarks/chart-scrub.spec.ts:42–52  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

40 };
41
42 const tick = (timestamp: number) => {
43 if (lastFrame !== undefined) {
44 globalWindow.__chartKitScrubFrameSamples?.push(timestamp - lastFrame);
45 }
46
47 lastFrame = timestamp;
48
49 if (active) {
50 requestAnimationFrame(tick);
51 }
52 };
53
54 requestAnimationFrame(tick);
55 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected