File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ export default class Example extends Component {
72
72
this . openURL ( "https://facebook.github.io/react-native/" ) ;
73
73
}
74
74
75
- // TODO:
76
75
errorOccur ( ) {
77
- this . openURL ( "https://www.google.com" ) ;
76
+ // Invalid url.
77
+ this . openURL ( "htt://www.google.com" ) ;
78
78
}
79
79
80
80
openURL ( url , option ) {
@@ -83,7 +83,7 @@ export default class Example extends Component {
83
83
console . log ( `Launched custom tabs: ${ launched } ` ) ;
84
84
} )
85
85
. catch ( err => {
86
- console . warn ( "An error occurred" , err ) ;
86
+ console . error ( err , err . stack ) ;
87
87
} ) ;
88
88
}
89
89
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export default class Example extends Component {
28
28
console . log ( `Launched custom tabs: ${ launched } ` ) ;
29
29
} )
30
30
. catch ( err => {
31
- console . warn ( "An error occurred" , err ) ;
31
+ console . error ( err , err . stack ) ;
32
32
} ) ;
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments