File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -102,13 +102,19 @@ export default class App extends Component {
102102 }
103103
104104 async tryDeepLinking ( ) {
105- const loginUrl =
106- 'https://proyecto26.github.io/react-native-inappbrowser/' ;
105+ const loginUrl = 'https://proyecto26.github.io/react-native-inappbrowser/' ;
107106 const redirectUrl = encodeURIComponent ( this . getDeepLink ( 'home' ) ) ;
108107 const url = `${ loginUrl } ?redirect_url=${ redirectUrl } ` ;
109108 try {
110109 if ( await InAppBrowser . isAvailable ( ) ) {
111- const result = await InAppBrowser . openAuth ( url , redirectUrl ) ;
110+ const result = await InAppBrowser . openAuth ( url , redirectUrl , {
111+ showTitle : true ,
112+ toolbarColor : '#6200EE' ,
113+ secondaryToolbarColor : 'black' ,
114+ enableUrlBarHiding : true ,
115+ enableDefaultShare : true ,
116+ waitForRedirectDelay : 1000
117+ } ) ;
112118 await this . sleep ( 800 ) ;
113119 Alert . alert ( 'Response' , JSON . stringify ( result ) ) ;
114120 } else {
You can’t perform that action at this time.
0 commit comments