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

Function decodeQueryValue

src/showcase/navigation.ts:19–25  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

17);
18
19const decodeQueryValue = (value: string) => {
20 try {
21 return decodeURIComponent(value.replace(/\+/g, " "));
22 } catch {
23 return value;
24 }
25};
26
27const getQueryString = (url: string) => {
28 const queryStart = url.indexOf("?");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected