feat(mobile): add Forum screen with categories and thread listing

- Created ForumScreen.tsx with category browsing and thread views
- Support for pinned posts and locked threads
- Mock data structure ready for Supabase integration
- View counts, reply counts, and time-ago formatting
- Pull-to-refresh functionality
- FAB for creating new threads
- Added Forum tab to navigation (9 tabs total)
This commit is contained in:
Claude
2025-11-21 03:21:56 +00:00
parent fe986cdcd5
commit 0c06e72c4e
2 changed files with 526 additions and 0 deletions
@@ -9,6 +9,7 @@ import WalletScreen from '../screens/WalletScreen';
import SwapScreen from '../screens/SwapScreen';
import P2PScreen from '../screens/P2PScreen';
import EducationScreen from '../screens/EducationScreen';
import ForumScreen from '../screens/ForumScreen';
import BeCitizenScreen from '../screens/BeCitizenScreen';
import ReferralScreen from '../screens/ReferralScreen';
import ProfileScreen from '../screens/ProfileScreen';
@@ -19,6 +20,7 @@ export type BottomTabParamList = {
Swap: undefined;
P2P: undefined;
Education: undefined;
Forum: undefined;
BeCitizen: undefined;
Referral: undefined;
Profile: undefined;
@@ -112,6 +114,18 @@ const BottomTabNavigator: React.FC = () => {
}}
/>
<Tab.Screen
name="Forum"
component={ForumScreen}
options={{
tabBarIcon: ({ color, focused }) => (
<Text style={[styles.icon, { color }]}>
{focused ? '💬' : '📝'}
</Text>
),
}}
/>
<Tab.Screen
name="BeCitizen"
component={BeCitizenScreen}