mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:53:25 +00:00
feat: use in tab browser to load update url
This commit is contained in:
@@ -3,7 +3,7 @@ import React from "react";
|
|||||||
import { Platform } from "react-native";
|
import { Platform } from "react-native";
|
||||||
import * as Application from "expo-application";
|
import * as Application from "expo-application";
|
||||||
import * as Brightness from "expo-brightness";
|
import * as Brightness from "expo-brightness";
|
||||||
import * as Linking from "expo-linking";
|
import * as WebBrowser from "expo-web-browser";
|
||||||
import {
|
import {
|
||||||
FontAwesome,
|
FontAwesome,
|
||||||
MaterialCommunityIcons,
|
MaterialCommunityIcons,
|
||||||
@@ -64,7 +64,7 @@ export default function SettingsScreen() {
|
|||||||
native: true,
|
native: true,
|
||||||
duration: 500,
|
duration: 500,
|
||||||
});
|
});
|
||||||
await Linking.openURL(url);
|
await WebBrowser.openBrowserAsync(url);
|
||||||
} else {
|
} else {
|
||||||
toastController.show("No updates available", {
|
toastController.show("No updates available", {
|
||||||
burntOptions: { preset: "none" },
|
burntOptions: { preset: "none" },
|
||||||
|
Reference in New Issue
Block a user