From ebe070fd508c1041ea678f907b266ebebbb9a379 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Sat, 9 Dec 2023 11:09:22 +0800 Subject: [PATCH] replace translate with margin --- .../Navigation/AppNavigator/getRootNavigatorScreenOptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.ts b/src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.ts index 9af92dd3e019..b294e6d7ab11 100644 --- a/src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.ts +++ b/src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.ts @@ -42,8 +42,8 @@ export default (isSmallScreenWidth: boolean, themeStyles: ThemeStyles): ScreenOp ...getNavigationModalCardStyle(), width: isSmallScreenWidth ? '100%' : variables.sideBarWidth, - // We need to translate the sidebar to not be covered by the StackNavigator so it can be clickable. - transform: [{translateX: isSmallScreenWidth ? 0 : -variables.sideBarWidth}], + // We need to shift the sidebar to not be covered by the StackNavigator so it can be clickable. + marginLeft: isSmallScreenWidth ? 0 : -variables.sideBarWidth, ...(isSmallScreenWidth ? {} : themeStyles.borderRight), }, },