Skip to content

Commit f15057b

Browse files
authored
fix:: delete comment noise
1 parent 15d8a25 commit f15057b

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

development/utils.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { Alert, Linking } from 'react-native';
22
import { Currency, DynamicMultiSplitProps, PaymentChannels, PaystackParams, PaystackTransactionResponse } from './types';
33

4-
/**
5-
* Whether a navigation URL should be handed off to the OS instead of being
6-
* loaded inside the checkout WebView. String matchers match by prefix;
7-
* RegExp matchers use `.test(url)`.
8-
*/
94
export const shouldHandleExternally = (
105
url: string,
116
hosts: Array<string | RegExp>
@@ -15,10 +10,6 @@ export const shouldHandleExternally = (
1510
typeof matcher === 'string' ? url.indexOf(matcher) === 0 : matcher.test(url)
1611
);
1712

18-
/**
19-
* Hand a URL off to the OS. Checks `Linking.canOpenURL` first so we don't
20-
* attempt to open a URL no installed app can handle, and swallows any error.
21-
*/
2213
export const openExternalUrl = async (url: string, debug = false): Promise<void> => {
2314
try {
2415
const supported = await Linking.canOpenURL(url);

0 commit comments

Comments
 (0)