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

Function getStoryFromParams

App.tsx:74–80  ·  view source on GitHub ↗
(
  params: ShowcaseSearchParams | null | undefined,
)

Source from the content-addressed store, hash-verified

72};
73
74const getStoryFromParams = (
75 params: ShowcaseSearchParams | null | undefined,
76) => {
77 const storyId = params?.get("story");
78
79 return stories.find((story) => story.id === storyId) ?? defaultStory;
80};
81
82const getInitialVisualMode = () => {
83 const params = getInitialSearchParams();

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected