diff --git a/src/components/Navigation/MainScreens.tsx b/src/components/Navigation/MainScreens.tsx index f92598026..8515c0ade 100644 --- a/src/components/Navigation/MainScreens.tsx +++ b/src/components/Navigation/MainScreens.tsx @@ -33,47 +33,29 @@ export default function MainScreens( ): React.JSX.Element { return ( <> - - - + + + - + - + ); diff --git a/src/components/Navigation/Stack.tsx b/src/components/Navigation/Stack.tsx index 1ba240ed5..8ade8b1bd 100644 --- a/src/components/Navigation/Stack.tsx +++ b/src/components/Navigation/Stack.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import { NavigationContainer } from '@react-navigation/native'; +import React, { useMemo } from 'react'; +import { DarkTheme, NavigationContainer } from '@react-navigation/native'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; import Tabs from '@components/Navigation/Tabs'; import { useAccounts } from '@src/state/account/accountStore'; @@ -7,14 +7,31 @@ import OnboardingIndexScreen from '@components/Onboarding/OnboardingIndex/Onboar import OnboardingInstanceListScreen from '@components/Onboarding/OnboardingInstanceList/OnboardingInstanceListScreen'; import CreateAccountModal from '@components/Account/CreateAccountModal'; import AddAccountModal from '@components/Account/AddAccountModal'; +import { useTheme } from 'tamagui'; const Stack = createNativeStackNavigator(); export default function MainStack(): React.JSX.Element { const accounts = useAccounts(); + const theme = useTheme(); + + const navTheme = useMemo( + () => ({ + ...DarkTheme, + colors: { + ...DarkTheme.colors, + primary: theme.accent.val, + background: theme.bg.val, + card: theme.navBarBg.val, + text: theme.color.val, + border: theme.border.val, + }, + }), + [theme], + ); return ( - + {accounts.length < 1 ? ( <> diff --git a/src/components/Post/screens/PostScreen.tsx b/src/components/Post/screens/PostScreen.tsx index 397375359..25ef4606e 100644 --- a/src/components/Post/screens/PostScreen.tsx +++ b/src/components/Post/screens/PostScreen.tsx @@ -11,9 +11,9 @@ import Post from '@components/Post/components/Post'; import instance from '@src/Instance'; import { ICommentInfo } from '@src/types'; import CommentChain from '@components/Comment/components/CommentChain'; -import { FlatList } from 'react-native'; import { useLoadData } from '@hooks/useLoadData'; import FeedLoadingIndicator from '@components/Feed/components/Feed/FeedLoadingIndicator'; +import { FlashList } from '@shopify/flash-list'; interface RenderItem { item: ICommentInfo; @@ -58,15 +58,11 @@ export default function PostScreen({ return ( - } ListEmptyComponent={ diff --git a/src/helpers/comments/buildCommentChains.ts b/src/helpers/comments/buildCommentChains.ts index b5d94e3be..5fc31de7f 100644 --- a/src/helpers/comments/buildCommentChains.ts +++ b/src/helpers/comments/buildCommentChains.ts @@ -89,8 +89,8 @@ const buildReplies = ( collapsed: false, hidden: false, path, - showInPost: depth <= 1 && i <= 1, - showLoadMore: depth === 1 && i === 1, + showInPost: depth <= 4 && i <= 4, + showLoadMore: depth === 4 && i === 4, topId: pathIds[1], parentId: pathIds[pathIds.length - 2], });