Closed cloudsoh closed 11 months ago
Closing quotes for formatting
import { Linking } from 'react-native' import { InAppBrowser } from 'react-native-inappbrowser-reborn' import { getDeepLink } from './utilities' ... async onLogin() { const deepLink = getDeepLink('callback) const url = `https://my-auth-login-page.com?redirect_uri=${deepLink}` try { if (await InAppBrowser.isAvailable()) { InAppBrowser.openAuth(url, deepLink, { // iOS Properties ephemeralWebSession: false, // Android Properties showTitle: false, enableUrlBarHiding: true, enableDefaultShare: false }).then((response) => { if ( response.type === 'success' && response.url ) { Linking.openURL(response.url) } }) } else Linking.openURL(url) } catch (error) { Linking.openURL(url) } } ...
import { Linking } from 'react-native' import { InAppBrowser } from 'react-native-inappbrowser-reborn' import { getDeepLink } from './utilities' ... async onLogin() { const deepLink = getDeepLink('callback') const url = `https://my-auth-login-page.com?redirect_uri=${deepLink}` try { if (await InAppBrowser.isAvailable()) { InAppBrowser.openAuth(url, deepLink, { // iOS Properties ephemeralWebSession: false, // Android Properties showTitle: false, enableUrlBarHiding: true, enableDefaultShare: false }).then((response) => { if ( response.type === 'success' && response.url ) { Linking.openURL(response.url) } }) } else Linking.openURL(url) } catch (error) { Linking.openURL(url) } } ...
Fixes/Implements/Closes #[Issue Number].
@cloudsoh thanks for your contribution, it was already fixed! <3
Closing quotes for formatting
PR Checklist
What is the current behavior?
What is the new behavior?
Fixes/Implements/Closes #[Issue Number].