File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export default class Example extends Component {
52
52
}
53
53
54
54
openCustomizedCustomTabs ( ) {
55
- this . openGoogle ( {
55
+ this . openURL ( "https://www.google.com" , {
56
56
toolbarColor : "#607D8B" ,
57
57
enableUrlBarHiding : true ,
58
58
showPageTitle : true ,
@@ -69,18 +69,16 @@ export default class Example extends Component {
69
69
}
70
70
71
71
openDefaultCustomTabs ( ) {
72
- this . openGoogle ( ) ;
72
+ this . openURL ( "https://facebook.github.io/react-native/" ) ;
73
73
}
74
74
75
+ // TODO:
75
76
errorOccur ( ) {
76
- this . openGoogle ( "https://www.google.com" , {
77
- //toolbarColor: '607D8B', // <--- Invalid toolbar color.
78
- enableUrlBarHiding : "#607D8B" , // <-- Type Error.
79
- } ) ;
77
+ this . openURL ( "https://www.google.com" ) ;
80
78
}
81
79
82
- openGoogle ( option ) {
83
- CustomTabs . openURL ( "https://www.google.com" , option )
80
+ openURL ( url , option ) {
81
+ CustomTabs . openURL ( url , option )
84
82
. then ( launched => {
85
83
console . log ( `Launched custom tabs: ${ launched } ` ) ;
86
84
} )
You can’t perform that action at this time.
0 commit comments