Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
gkasdorf committed Aug 27, 2023
2 parents 011fee6 + f585c66 commit 42d83ba
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
37 changes: 20 additions & 17 deletions Start.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { ThemeOptionsMap } from "@src/theme/themeOptions";
import { useFiltersStore } from "@src/stores/filters/filtersStore";
import { loadFavorites } from "@src/slices/favorites/favoritesActions";
import { useAccountStore } from "@src/stores/account/accountStore";
import { SafeAreaProvider } from "react-native-safe-area-context";
import loadSettings from "./src/stores/settings/actions/loadSettings";
import setSetting from "./src/stores/settings/actions/setSetting";
import Toast from "./src/components/common/Toast";
Expand Down Expand Up @@ -154,23 +155,25 @@ function Start({ onReady }: StartProps) {
}

return (
<GluestackUIProvider config={glueStackTheme}>
<ErrorBoundary onError={logError} FallbackComponent={MemmyErrorView}>
{/* eslint-disable-next-line react/style-prop-object */}
<StatusBar style={statusBarColor} />
<GestureHandlerRootView
style={{
flex: 1,
backgroundColor: ThemeOptionsMap[currentTheme].colors.bg,
}}
>
<>
<Toast />
<Stack onReady={onStackReady} />
</>
</GestureHandlerRootView>
</ErrorBoundary>
</GluestackUIProvider>
<SafeAreaProvider>
<GluestackUIProvider config={glueStackTheme}>
<ErrorBoundary onError={logError} FallbackComponent={MemmyErrorView}>
{/* eslint-disable-next-line react/style-prop-object */}
<StatusBar style={statusBarColor} />
<GestureHandlerRootView
style={{
flex: 1,
backgroundColor: ThemeOptionsMap[currentTheme].colors.bg,
}}
>
<>
<Toast />
<Stack onReady={onStackReady} />
</>
</GestureHandlerRootView>
</ErrorBoundary>
</GluestackUIProvider>
</SafeAreaProvider>
);
}

Expand Down
7 changes: 5 additions & 2 deletions src/components/common/Navigation/CustomTabBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Box, Text, View, VStack } from "@src/components/common/Gluestack";
import { useThemeOptions } from "@src/stores/settings/settingsStore";
import React from "react";
import { TouchableOpacity } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { onGenericHapticFeedback } from "../../../helpers/HapticFeedbackHelpers";
import { AccountsContextMenu } from "../ContextMenu/AccountsContextMenu";
import TabBarGestureHandler from "./TabBarGestureHandler";
Expand Down Expand Up @@ -51,16 +52,18 @@ export function CustomTabBar({
navigation,
}: BottomTabBarProps) {
const { colors } = useThemeOptions();
const insets = useSafeAreaInsets();

return (
<TabBarGestureHandler>
<View
style={{
flexDirection: "row",
height: 75,
backgroundColor: colors.navBarBg,
paddingTop: 6,
paddingHorizontal: 5,
paddingBottom: insets.bottom,
paddingLeft: insets.left,
paddingRight: insets.right,
borderTopWidth: 1,
borderTopColor: colors.border,
}}
Expand Down

0 comments on commit 42d83ba

Please sign in to comment.