1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Basic notification working

This commit is contained in:
Zhiyuan Zheng
2021-02-28 17:41:21 +01:00
parent 4eea2bf58c
commit 78898059cb
12 changed files with 246 additions and 137 deletions

View File

@ -6,7 +6,10 @@ import * as WebBrowser from 'expo-web-browser'
const openLink = async (url: string) => {
switch (getSettingsBrowser(store.getState())) {
case 'internal':
await WebBrowser.openBrowserAsync(url)
await WebBrowser.openBrowserAsync(url, {
dismissButtonStyle: 'close',
enableBarCollapsing: true
})
break
case 'external':
await Linking.openURL(url)