diff --git a/apps/mobile/src/components/Community/CommunityCollectors.tsx b/apps/mobile/src/components/Community/CommunityCollectors.tsx
index 90418d302a..26294296af 100644
--- a/apps/mobile/src/components/Community/CommunityCollectors.tsx
+++ b/apps/mobile/src/components/Community/CommunityCollectors.tsx
@@ -1,4 +1,3 @@
-import { View } from 'react-native';
import { graphql, useFragment } from 'react-relay';
import { CommunityCollectorsFragment$key } from '~/generated/CommunityCollectorsFragment.graphql';
@@ -30,9 +29,5 @@ export function CommunityCollectors({ communityRef, queryRef }: Props) {
queryRef
);
- return (
-
-
-
- );
+ return ;
}
diff --git a/apps/mobile/src/components/Community/CommunityCollectorsList.tsx b/apps/mobile/src/components/Community/CommunityCollectorsList.tsx
index 8d78889266..a923a1c7d9 100644
--- a/apps/mobile/src/components/Community/CommunityCollectorsList.tsx
+++ b/apps/mobile/src/components/Community/CommunityCollectorsList.tsx
@@ -1,6 +1,7 @@
import { useNavigation } from '@react-navigation/native';
-import { FlashList, ListRenderItem } from '@shopify/flash-list';
+import { ListRenderItem } from '@shopify/flash-list';
import { useCallback, useMemo } from 'react';
+import { Tabs } from 'react-native-collapsible-tab-view';
import { graphql, useFragment, usePaginationFragment } from 'react-relay';
import { UserFollowCard } from '~/components/UserFollowList/UserFollowCard';
@@ -87,7 +88,7 @@ export function CommunityCollectorsList({ communityRef, queryRef }: Props) {
);
return (
- {
+ console.log({ scrollY });
+ }, [scrollY]);
+
const hasCommunityDescription = Boolean(community.description);
const bottomSheetRef = useRef(null);
const handlePress = useCallback(() => {
diff --git a/apps/mobile/src/components/Community/CommunityView.tsx b/apps/mobile/src/components/Community/CommunityView.tsx
index e45829cebe..b870bf624c 100644
--- a/apps/mobile/src/components/Community/CommunityView.tsx
+++ b/apps/mobile/src/components/Community/CommunityView.tsx
@@ -76,36 +76,58 @@ export function CommunityView({ queryRef }: Props) {
const TabBar = useCallback(() => {
return (
-
+
+
+
+
+
+
);
- }, [community, setSelectedRoute, selectedRoute]);
+ }, [community, query, selectedRoute]);
- return (
-
-
-
-
+ const Header = useCallback(() => {
+ return (
+
+
+
+
- }
- onPress={handleShare}
- />
+ }
+ onPress={handleShare}
+ />
+
-
-
-
-
+
+
+
+
+
+
+ );
+ }, [community, query, selectedRoute]);
+ return (
+
-
+
diff --git a/apps/mobile/src/components/Community/Tabs/CommunityViewPostsTab.tsx b/apps/mobile/src/components/Community/Tabs/CommunityViewPostsTab.tsx
index 180ae84a6e..fb3e412834 100644
--- a/apps/mobile/src/components/Community/Tabs/CommunityViewPostsTab.tsx
+++ b/apps/mobile/src/components/Community/Tabs/CommunityViewPostsTab.tsx
@@ -144,6 +144,11 @@ export function CommunityViewPostsTab({ communityRef, queryRef }: Props) {
}
}, [hasPrevious, loadPrevious]);
+ const handleScroll = useCallback(
+ (e) => console.log('scrolling', e.nativeEvent.contentOffset.y),
+ []
+ );
+
if (totalPosts === 0) {
return (
@@ -189,6 +194,8 @@ export function CommunityViewPostsTab({ communityRef, queryRef }: Props) {
data={items}
renderItem={renderItem}
onEndReached={loadMore}
+ showsVerticalScrollIndicator={false}
+ onScroll={handleScroll}
/>
);