Skip to content

Commit

Permalink
Fixes missleading comment on getInitialURL
Browse files Browse the repository at this point in the history
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 c41b29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Linking/Linking.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const LinkingManager = Platform.OS === 'android' ?
* *
* ``` * ```
* componentDidMount() { * componentDidMount() {
* var url = Linking.getInitialURL().then((url) => { * Linking.getInitialURL().then((url) => {
* if (url) { * if (url) {
* console.log('Initial url is: ' + url); * console.log('Initial url is: ' + url);
* } * }
Expand Down

0 comments on commit c41b29d

Please sign in to comment.