Skip to content

Commit 9d4d85c

Browse files
committed
Update README.md
Fixed Readme example code for React Native, proper function handling
1 parent 19a65d5 commit 9d4d85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ in the App.tsx or parent level Component
267267
};
268268
const linkSubscription = Linking.addEventListener('url', handleUrlEvents);
269269

270-
Linking.getInitialURL(url => processUniversalLink(url));
270+
Linking.getInitialURL().then((url) => url && processUniversalLink(url));
271271
return () => linkSubscription.remove();
272272
}, []);
273273
```

0 commit comments

Comments
 (0)