Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Jan 15, 2024
1 parent 404b0b6 commit 58a24bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/components/ScreenWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,8 @@ function ScreenWrapper(
}

// We always need the safe area padding bottom if we're showing the offline indicator since it is bottom-docked.
if (includeSafeAreaPaddingBottom || (isOffline && shouldShowOfflineIndicator)) {
if (!shouldDisableSafeAreaPaddingBottom) {
paddingStyle.paddingBottom = paddingBottom;
}
if (!shouldDisableSafeAreaPaddingBottom && (includeSafeAreaPaddingBottom || (isOffline && shouldShowOfflineIndicator))) {
paddingStyle.paddingBottom = paddingBottom;
}

return (
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Navigation/linkTo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function getActionForBottomTabNavigator(action: StackNavigationAction, state: Na
const screen = params.screen;

// Check if the current bottom tab is the same as the one we want to navigate to. If it is, we don't need to do anything.
const bottomTabCurrentTab = bottomTabNavigatorRoute.state.routes.at(bottomTabNavigatorRoute.state.index ?? 0);
const bottomTabCurrentTab = getTopmostBottomTabRoute(state);
if (bottomTabCurrentTab?.name === screen) {
return;
}
Expand Down

0 comments on commit 58a24bc

Please sign in to comment.