feat: update

This commit is contained in:
2025-11-05 17:24:55 +08:00
parent 61252cdf36
commit ce324c9bb5
42 changed files with 2078 additions and 448 deletions

View File

@@ -56,22 +56,18 @@ export default function RootLayout() {
await Updates.fetchUpdateAsync();
// 提示用户重启应用以应用更新
Alert.alert(
'更新可用',
'发现新版本,是否立即重启应用?',
[
{
text: '稍后',
style: 'cancel',
Alert.alert('更新可用', '发现新版本,是否立即重启应用?', [
{
text: '稍后',
style: 'cancel',
},
{
text: '立即重启',
onPress: async () => {
await Updates.reloadAsync();
},
{
text: '立即重启',
onPress: async () => {
await Updates.reloadAsync();
},
},
]
);
},
]);
}
} catch (error) {
// 处理更新检查错误