MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / parseLinking

Function parseLinking

src/provider.tsx:354–364  ·  view source on GitHub ↗
(url: string | null)

Source from the content-addressed store, hash-verified

352 return;
353 }
354 const parseLinking = (url: string | null) => {
355 if (!url) {
356 return;
357 }
358 const params = new URL(url).searchParams;
359 const payload = {
360 type: params.get('type'),
361 data: params.get('data'),
362 };
363 parseTestPayload(payload);
364 };
365
366 Linking.getInitialURL().then(parseLinking);
367 const linkingHandler = ({ url }: { url: string }) => {

Callers 1

linkingHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected