this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add placeholder tabs

+44 -7
+21 -1
apps/expo/src/app/(tabs)/_layout.tsx
··· 1 1 import { Stack, Tabs } from "expo-router"; 2 - import { Cloudy, User } from "lucide-react-native"; 2 + import { Bell, Cloudy, Search, User } from "lucide-react-native"; 3 3 4 4 export default function AppLayout() { 5 5 return ( ··· 18 18 tabBarShowLabel: false, 19 19 tabBarIcon({ focused }) { 20 20 return <Cloudy color={focused ? "#505050" : "#9b9b9b"} />; 21 + }, 22 + }} 23 + /> 24 + <Tabs.Screen 25 + name="search" 26 + options={{ 27 + title: "Search", 28 + tabBarShowLabel: false, 29 + tabBarIcon({ focused }) { 30 + return <Search color={focused ? "#505050" : "#9b9b9b"} />; 31 + }, 32 + }} 33 + /> 34 + <Tabs.Screen 35 + name="notifications" 36 + options={{ 37 + title: "Notifications", 38 + tabBarShowLabel: false, 39 + tabBarIcon({ focused }) { 40 + return <Bell color={focused ? "#505050" : "#9b9b9b"} />; 21 41 }, 22 42 }} 23 43 />
+9
apps/expo/src/app/(tabs)/notifications.tsx
··· 1 + import { Text, View } from "react-native"; 2 + 3 + export default function NotificationsPage() { 4 + return ( 5 + <View className="flex-1 justify-center"> 6 + <Text className="text-center text-xl">Coming soon</Text> 7 + </View> 8 + ); 9 + }
+9
apps/expo/src/app/(tabs)/search.tsx
··· 1 + import { Text, View } from "react-native"; 2 + 3 + export default function SearchPage() { 4 + return ( 5 + <View className="flex-1 justify-center"> 6 + <Text className="text-center text-xl">Coming soon</Text> 7 + </View> 8 + ); 9 + }
+1 -1
apps/expo/src/components/embed.tsx
··· 49 49 } 50 50 51 51 export const Embed = ({ content, truncate = true }: Props) => { 52 - console.log(JSON.stringify(content, null, 2)); 52 + if (!content) return null; 53 53 try { 54 54 // Case 1: Image 55 55 if (AppBskyEmbedImages.isView(content)) {
-1
apps/expo/src/components/feed-post.tsx
··· 38 38 item.reply?.parent && "pt-0", 39 39 !hasReply && "border-b border-b-neutral-200", 40 40 )} 41 - // onLayout={(x) => console.log(x.nativeEvent.layout)} 42 41 > 43 42 <Reason item={item} /> 44 43 <View className="flex-1 flex-row">
+4 -4
apps/expo/src/lib/hooks.ts
··· 28 28 setLikeUri(like.uri); 29 29 } catch (err) { 30 30 setLiked(false); 31 - console.log(err); 31 + console.warn(err); 32 32 } 33 33 } else { 34 34 try { ··· 37 37 setLikeUri(undefined); 38 38 } catch (err) { 39 39 setLiked(true); 40 - console.log(err); 40 + console.warn(err); 41 41 } 42 42 } 43 43 }, ··· 75 75 setRepostUri(repost.uri); 76 76 } catch (err) { 77 77 setReposted(false); 78 - console.log(err); 78 + console.warn(err); 79 79 } 80 80 } else { 81 81 try { ··· 84 84 setRepostUri(undefined); 85 85 } catch (err) { 86 86 setReposted(true); 87 - console.log(err); 87 + console.warn(err); 88 88 } 89 89 } 90 90 },