After updating to Expo SDK 37, my original code that was previously functioning started encountering issues with
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0e7c6b6f6d7a23606f7a67786b23796b6c78667f79627a">[email protected]</a>
:
const onShouldStartLoadWithRequest = ({ url }: WebViewNavigation): boolean => {
const response = parseResponse(url);
if (shouldProceed(response)) {
proceed(response);
return false;
}
return response;
};
parseResponse(url: string): Params | boolean {
const uri = URL.parse(url);
if (uri.protocol === "deeplinkprotocol:") {
const query = queryString.parse(uri.search, { decode: false });
switch (uri.host) {
case Event.connected:
return {
param: query.param,
};
default:
return false;
}
}
return uri.protocol === this.http || uri.protocol === this.https;
}
The functionality of redirecting to the requested URL ceased after an error was thrown by onShouldStartLoadWithRequest
.