Skip to content

Commit c41b29d

Browse files
jeremistadlerfacebook-github-bot
authored andcommitted
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
1 parent ba75d99 commit c41b29d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Linking/Linking.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const LinkingManager = Platform.OS === 'android' ?
3333
*
3434
* ```
3535
* componentDidMount() {
36-
* var url = Linking.getInitialURL().then((url) => {
36+
* Linking.getInitialURL().then((url) => {
3737
* if (url) {
3838
* console.log('Initial url is: ' + url);
3939
* }

0 commit comments

Comments
 (0)