MCPcopy Create free account
hub / github.com/PaulLeCam/react-native-electron / handler

Function handler

example/src/App.js:159–164  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

157
158 useEffect(() => {
159 const handler = (e) => {
160 const match = getWebsite(e.url)
161 if (match != null) {
162 setWebSite(match)
163 }
164 }
165 Linking.addEventListener('url', handler)
166
167 Linking.getInitialURL().then((url) => {

Callers 1

wrapHandlerFunction · 0.85

Calls 1

getWebsiteFunction · 0.85

Tested by

no test coverage detected