Skip to content

Commit

Permalink
Merge branch 'master' into feat/android-instagram-stories-share-video
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusAndrade committed Dec 21, 2020
2 parents f8f98f7 + 780ae91 commit 1bec734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/share-package-installed.mdx
Expand Up @@ -22,11 +22,11 @@ Share.isPackageInstalled('com.instagram.android')
Or with `async/await`:

```js
const checkPackage = async = () => {
const checkPackage = async () => {
const { isInstalled } = await Share.isPackageInstalled('com.instagram.android');
}
```

Keep in mind, that similar to `Share.open` and `Share.single` it's a good idea using a `try/catch` whenever a call to this method is requested.

For iOS you can use the `Linking.canOpenURL(instagram://)` where the `url` is the app scheme that you want to check. Also, note that calling the `isPackageInstalled` on iOS will return a `Error: Not implemented`.
For iOS you can use the `Linking.canOpenURL(instagram://)` where the `url` is the app scheme that you want to check. Also, note that calling the `isPackageInstalled` on iOS will return a `Error: Not implemented`.

0 comments on commit 1bec734

Please sign in to comment.