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

Function exitTakeover

App.tsx:507–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

505 });
506 };
507 const exitTakeover = () => {
508 const fallbackPage =
509 publicChartMode.pages.find((page) => page.id !== pageSelection.page.id) ??
510 publicChartMode.pages[0];
511
512 if (fallbackPage) {
513 selectPage({ mode: publicChartMode, page: fallbackPage });
514 }
515 };
516
517 if (isVisualMode) {
518 const visualWidth = Math.min(previewWidth, 430);

Callers

nothing calls this directly

Calls 1

selectPageFunction · 0.85

Tested by

no test coverage detected