-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* expo link * preview profile * bump eas-cli * chore(release): 0.10.10 * added intent filters * added intent filters * update * update * chore(release): 0.10.11 * update * added intent * revert changes * space * space revert changes added intent update chore(release): 0.10.11 update * update comment
- Loading branch information
1 parent
dacfae2
commit e267547
Showing
4 changed files
with
24 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Platform } from 'react-native' | ||
import * as Linking from 'expo-linking' | ||
import * as WebBrowser from 'expo-web-browser' | ||
|
||
export async function openURL (url: string): Promise<void> { | ||
if (Platform.OS !== 'android') { | ||
const supported = await Linking.canOpenURL(url) | ||
if (supported) { | ||
await Linking.openURL(url) | ||
return | ||
} | ||
} | ||
await WebBrowser.openBrowserAsync(url) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters