Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix restore backup keeps loading

Ammar Ahmeda1a171d6487d
diff --git a/apps/mobile/app/screens/settings/restore-backup/index.tsx b/apps/mobile/app/screens/settings/restore-backup/index.tsx
index 5250cb2ff..474980a54 100644
--- a/apps/mobile/app/screens/settings/restore-backup/index.tsx
+++ b/apps/mobile/app/screens/settings/restore-backup/index.tsx
@@ -322,6 +322,7 @@ export const RestoreBackup = () => {
});
setFiles(files);
+ setLoading(false);
BACKUP_FILES_CACHE.splice(0, BACKUP_FILES_CACHE.length, ...files);
} catch (e) {
e;
@@ -519,7 +520,11 @@ const BackupItem = ({
paddingVertical: DefaultAppStyles.GAP_VERTICAL
}}
>
- <View>
+ <View
+ style={{
+ flexShrink: 1
+ }}
+ >
<Paragraph size={AppFontSize.sm}>{itemName}</Paragraph>
<Paragraph
size={AppFontSize.xs}