Skip to content

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

mobile: fix keep awake (#1557)

Ammar Ahmedd291a536a6a7
diff --git a/apps/mobile/app/components/tabs/index.tsx b/apps/mobile/app/components/tabs/index.tsx
index d08bdd256..7a58ebdb1 100644
--- a/apps/mobile/app/components/tabs/index.tsx
+++ b/apps/mobile/app/components/tabs/index.tsx
@@ -242,6 +242,7 @@ export const FluidTabs = forwardRef<TabsRef, TabProps>(function FluidTabs(
if (onChangeTab) {
runOnJS(onChangeTab)({ i: result, from: previousTab.value });
+ previousTab.value = result;
}
},
[]