Permalink
Browse files

Fixes missleading comment on getInitialURL

Summary:
The returned value from Linking.getInitialURL is a promise that returns an url.

Can be seen here: https://github.com/facebook/react-native/blob/f126540519bd276c0048aa77b543dc863412de46/Libraries/Linking/Linking.js#L175
Closes #12851

Differential Revision: D4716084

Pulled By: hramos

fbshipit-source-id: 309881cfb423a5c9a3f9010ae7ca226b63c91599
  • Loading branch information...
jeremistadler authored and facebook-github-bot committed Mar 21, 2017
1 parent ba75d99 commit c41b29d6de8241e5b9269034ece30d5c8803c938
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
* }

0 comments on commit c41b29d

Please sign in to comment.