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

Function getInitialStory

App.tsx:68–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 getWebSearchParams() ?? getShowcaseSearchParamsFromBuildEnv();
67
68const getInitialStory = () => {
69 const storyId = getInitialSearchParams()?.get("story");
70
71 return stories.find((story) => story.id === storyId) ?? defaultStory;
72};
73
74const getStoryFromParams = (
75 params: ShowcaseSearchParams | null | undefined,

Callers

nothing calls this directly

Calls 1

getInitialSearchParamsFunction · 0.85

Tested by

no test coverage detected