Skip to content

Commit 648001c

Browse files
committed
Update example
1 parent 5558fa1 commit 648001c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example/index.android.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ export default class Example extends Component {
7272
this.openURL("https://facebook.github.io/react-native/");
7373
}
7474

75-
// TODO:
7675
errorOccur() {
77-
this.openURL("https://www.google.com");
76+
// Invalid url.
77+
this.openURL("htt://www.google.com");
7878
}
7979

8080
openURL(url, option) {
@@ -83,7 +83,7 @@ export default class Example extends Component {
8383
console.log(`Launched custom tabs: ${launched}`);
8484
})
8585
.catch(err => {
86-
console.warn("An error occurred", err);
86+
console.error(err, err.stack);
8787
});
8888
}
8989
}

example/index.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class Example extends Component {
2828
console.log(`Launched custom tabs: ${launched}`);
2929
})
3030
.catch(err => {
31-
console.warn("An error occurred", err);
31+
console.error(err, err.stack);
3232
});
3333
}
3434
}

0 commit comments

Comments
 (0)