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

Function getWebSearchParams

App.tsx:57–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55const isWebRuntime = Platform.OS === "web" && typeof window !== "undefined";
56
57const getWebSearchParams = (): URLSearchParams | null => {
58 if (!isWebRuntime) {
59 return null;
60 }
61
62 return new URLSearchParams(window.location.search);
63};
64
65const getInitialSearchParams = (): ShowcaseSearchParams | null =>
66 getWebSearchParams() ?? getShowcaseSearchParamsFromBuildEnv();

Callers 1

getInitialSearchParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected