Skip to content

Commit b96ed82

Browse files
committed
fix: expo update timeout
1 parent 62f6945 commit b96ed82

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"updates": {
2121
"enabled": true,
22-
"fallbackToCacheTimeout": 0,
22+
"fallbackToCacheTimeout": 20000,
2323
"checkAutomatically": "ON_ERROR_RECOVERY",
2424
"url": "https://u.expo.dev/1d5a474b-fc28-458a-a1e4-c9b4468bbfff"
2525
},

src/screens/LoginScreen/SplashScreen.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const SplashScreen = () => {
2626
console.log('Dowload update');
2727
setStatusText('Downloading new app version...');
2828
await Updates.fetchUpdateAsync();
29+
setStatusText('Restarting app...');
2930
await Updates.reloadAsync();
3031
}
3132
} catch (e) {

0 commit comments

Comments
 (0)