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

Function selectThemeMode

App.tsx:473–482  ·  view source on GitHub ↗
(mode: ShowcaseThemeMode)

Source from the content-addressed store, hash-verified

471 selectPage({ mode: publicChartMode, page }, storyId);
472 };
473 const selectThemeMode = (mode: ShowcaseThemeMode) => {
474 setThemeMode(mode);
475 updateShowcaseUrl({
476 chartPreset,
477 isVisualMode,
478 rendererMode,
479 selection: pageSelection,
480 themeMode: mode,
481 });
482 };
483 const selectChartPreset = (preset: string) => {
484 const nextPreset =
485 showcasePresetOptions.find((option) => option.id === preset)?.id ??

Callers

nothing calls this directly

Calls 1

updateShowcaseUrlFunction · 0.85

Tested by

no test coverage detected