From b43ed2d630cfc11d33818ae47fd40c6bcb894ef1 Mon Sep 17 00:00:00 2001 From: Jeremi Stadler Date: Fri, 10 Mar 2017 12:09:34 +0100 Subject: [PATCH] Fixes missleading comment on getInitialURL The returned value is a promise, not a url. --- Libraries/Linking/Linking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Linking/Linking.js b/Libraries/Linking/Linking.js index 1902bfb2a793ef..0f50b15bd5ee19 100644 --- a/Libraries/Linking/Linking.js +++ b/Libraries/Linking/Linking.js @@ -33,7 +33,7 @@ const LinkingManager = Platform.OS === 'android' ? * * ``` * componentDidMount() { - * var url = Linking.getInitialURL().then((url) => { + * Linking.getInitialURL().then((url) => { * if (url) { * console.log('Initial url is: ' + url); * }