Skip to content

Commit

Permalink
fix: avoid calling canOpenUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecamposfabel committed Sep 6, 2023
1 parent 35ead99 commit b8877b9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/commonjs/modules/AppInstalled/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/commonjs/modules/AppInstalled/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/module/modules/AppInstalled/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/module/modules/AppInstalled/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/modules/AppInstalled/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NativeModules, Platform, Linking } from 'react-native';
import { NativeModules, Platform } from 'react-native';

const LINKING_ERROR =
`The package 'react-native-installed-app' doesn't seem to be linked. Make sure: \n\n` +
Expand Down Expand Up @@ -27,7 +27,7 @@ const InstalledApp = InstalledAppModule

async function isAppInstalledIos(deepLink?: string): Promise<boolean> {
try {
return deepLink ? Linking.canOpenURL(deepLink) : Promise.resolve(false);
return deepLink ? Promise.resolve(false) : Promise.resolve(false);
} catch (error) {
return Promise.resolve(false);
}
Expand Down

0 comments on commit b8877b9

Please sign in to comment.