MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / URIActionMap

Function URIActionMap

Examples/UIExplorer/js/URIActionMap.js:51–62  ·  view source on GitHub ↗
(uri: ?string)

Source from the content-addressed store, hash-verified

49}
50
51function URIActionMap(uri: ?string): ?UIExplorerAction {
52 if (!uri) {
53 return null;
54 }
55 // Warning! Hacky parsing for example code. Use a library for this!
56 const parts = uri.split('rnuiexplorer:/');
57 if (!parts[1]) {
58 return null;
59 }
60 const path = parts[1];
61 return PathActionMap(path);
62}
63
64module.exports = URIActionMap;

Callers 2

componentDidMountMethod · 0.85

Calls 1

PathActionMapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…