iOSでアイコンを変更すると即時再起動するように
This commit is contained in:
parent
0838414540
commit
c0478bf9ae
@ -9,6 +9,7 @@ import {
|
|||||||
Platform,
|
Platform,
|
||||||
} from "react-native";
|
} from "react-native";
|
||||||
import { useNavigation } from "@react-navigation/native";
|
import { useNavigation } from "@react-navigation/native";
|
||||||
|
import * as Updates from "expo-updates";
|
||||||
import { AS } from "../../storageControl";
|
import { AS } from "../../storageControl";
|
||||||
import icons from "../../assets/icons/icons";
|
import icons from "../../assets/icons/icons";
|
||||||
import { setAlternateAppIcon, getAppIconName } from "expo-alternate-app-icons";
|
import { setAlternateAppIcon, getAppIconName } from "expo-alternate-app-icons";
|
||||||
@ -132,6 +133,8 @@ export const LauncherIconSettings = ({ navigate }) => {
|
|||||||
"アイコンを変更しました。アプリを再起動します。",
|
"アイコンを変更しました。アプリを再起動します。",
|
||||||
ToastAndroid.SHORT
|
ToastAndroid.SHORT
|
||||||
);
|
);
|
||||||
|
} else if (Platform.OS === "ios") {
|
||||||
|
Updates.reloadAsync();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user