INNER CODE UNIT · JavaScript
closeAuthSessionPolyfillAsync
proyecto26/react-native-inappbrowser · utils.js:157
export function closeAuthSessionPolyfillAsync(): void {
if (_redirectHandler) {
if (
_linkingEventSubscription &&
_linkingEventSubscription.remove !== undefined
) {
_linkingEventSubscription.remove();
_linkingEventSubscription = null;
} else {
Linking.removeEventListener('url', _redirectHandler);
}
_redirectHandler = null;
}
}
/* iOS <= 10 and Android polyfill for SFAuthenticationSession flow */
export function authSessionIsNativelySupported(): boolean {
if (Platform.OS === 'android') {