We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc06296 commit 62ed2f4Copy full SHA for 62ed2f4
src/setup/hybridApp/index.native.ts
@@ -30,6 +30,8 @@ if (CONFIG.IS_HYBRID_APP) {
30
// eslint-disable-next-line @typescript-eslint/unbound-method
31
const originalAddEventListener = Linking.addEventListener;
32
33
+ // We wrap the original addEventListener to parse the URL before passing it to the handler.
34
+ // This simplifies usage of the Linking module all over the app.
35
Linking.addEventListener = (type: 'url', handler: (event: {url: string}) => void) => {
36
const handlerWithParsedHybridAppUrl = (event: {url: string}) => {
37
const transformedUrl = parseHybridAppUrl(event.url as HybridAppRoute | Route);
0 commit comments