From d291a536a6a7c07caae811dd12ac64178cc7256a Mon Sep 17 00:00:00 2001 From: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com> Date: Tue, 3 Jan 2023 22:13:11 +0500 Subject: [PATCH] mobile: fix keep awake (#1557) --- apps/mobile/app/components/tabs/index.tsx | 1 + 1 file changed, 1 insertion(+) 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(function FluidTabs( if (onChangeTab) { runOnJS(onChangeTab)({ i: result, from: previousTab.value }); + previousTab.value = result; } }, []