diff --git a/mobile/app/post/[post_id].tsx b/mobile/app/post/[post_id].tsx
index 72d69816..d00b6441 100644
--- a/mobile/app/post/[post_id].tsx
+++ b/mobile/app/post/[post_id].tsx
@@ -8,7 +8,7 @@ import Button from "@gno/components/button";
import Spacer from "@gno/components/spacer";
import Alert from "@gno/components/alert";
import { useGnoNativeContext } from "@gnolang/gnonative";
-import { Tweet } from "@gno/components/feed/tweet";
+import { PostRow } from "@gno/components/feed/post-row";
import { FlatList, KeyboardAvoidingView, View, Alert as RNAlert } from "react-native";
import { Post } from "@gno/types";
import { useFeed } from "@gno/hooks/use-feed";
@@ -73,8 +73,8 @@ function Page() {
}
};
- const onPressTweet = (item: Post) => {
- // TODO: on press a tweet inside the reply thread
+ const onPressPost = (post: Post) => {
+ // TODO: on press a post inside the reply thread
};
const onGnod = async (post: Post) => {
@@ -105,7 +105,7 @@ function Page() {
-
+
{loading ? (
@@ -116,7 +116,7 @@ function Page() {
data={thread}
keyExtractor={(item) => `${item.id}`}
contentContainerStyle={{ width: "100%", paddingBottom: 20 }}
- renderItem={({ item }) => }
+ renderItem={({ item }) => }
onEndReachedThreshold={0.1}
/>
)}
diff --git a/mobile/app/repost/index.tsx b/mobile/app/repost/index.tsx
index 8d443905..c1567cdb 100644
--- a/mobile/app/repost/index.tsx
+++ b/mobile/app/repost/index.tsx
@@ -1,5 +1,5 @@
import Button from "@gno/components/button";
-import { Tweet } from "@gno/components/feed/tweet";
+import { PostRow } from "@gno/components/feed/post-row";
import Layout from "@gno/components/layout";
import TextInput from "@gno/components/textinput";
import { selectPostToReply, useAppSelector } from "@gno/redux";
@@ -67,7 +67,7 @@ export default function Page() {
style={{ height: 80 }}
/>
-
+
);
diff --git a/mobile/components/feed/like-button.tsx b/mobile/components/feed/like-button.tsx
deleted file mode 100644
index f15a6554..00000000
--- a/mobile/components/feed/like-button.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import { StyleProp, TextStyle, TouchableOpacity } from "react-native";
-import { colors } from "@gno/styles/colors";
-import { MaterialCommunityIcons } from "@expo/vector-icons";
-import Text from "../text";
-
-interface Props {
- style?: StyleProp | undefined;
- onPressRepost?: () => void;
-}
-
-function LikeButton({ style, onPressRepost }: Props) {
- return (
-
-
- Enjoy
-
- );
-}
-
-export default LikeButton;
diff --git a/mobile/components/feed/tweet.tsx b/mobile/components/feed/post-row.tsx
similarity index 91%
rename from mobile/components/feed/tweet.tsx
rename to mobile/components/feed/post-row.tsx
index 03d1db46..5997a68e 100644
--- a/mobile/components/feed/tweet.tsx
+++ b/mobile/components/feed/post-row.tsx
@@ -8,7 +8,7 @@ import RepostButton from "./repost-button";
import { setPostToReply, useAppDispatch } from "@gno/redux";
import { useRouter } from "expo-router";
import RepostLabel from "./repost-label";
-import { TweetRepost } from "./tweet-repost";
+import { RepostRow } from "./repost-row";
import GnodLabel from "./gnod-label";
interface FeedProps {
@@ -20,7 +20,7 @@ interface FeedProps {
const func = () => {};
-export function Tweet({ post, onPress = func, onGnod = func, showFooter = true }: FeedProps) {
+export function PostRow({ post, onPress = func, onGnod = func, showFooter = true }: FeedProps) {
const router = useRouter();
const dispatch = useAppDispatch();
const isRepost = post?.repost_parent;
@@ -52,7 +52,7 @@ export function Tweet({ post, onPress = func, onGnod = func, showFooter = true }
{post.post}
- {isRepost ? : null}
+ {isRepost ? : null}
{showFooter ? (
diff --git a/mobile/components/feed/tweet-repost.tsx b/mobile/components/feed/repost-row.tsx
similarity index 93%
rename from mobile/components/feed/tweet-repost.tsx
rename to mobile/components/feed/repost-row.tsx
index 95e8640f..25cc4324 100644
--- a/mobile/components/feed/tweet-repost.tsx
+++ b/mobile/components/feed/repost-row.tsx
@@ -17,7 +17,7 @@ interface FeedProps {
const func = () => {};
-export function TweetRepost({ post, onPress = func, showFooter = true }: FeedProps) {
+export function RepostRow({ post, onPress = func, showFooter = true }: FeedProps) {
const router = useRouter();
const dispatch = useAppDispatch();
@@ -52,7 +52,6 @@ export function TweetRepost({ post, onPress = func, showFooter = true }: FeedPro
{showFooter ? (
- {/* onPressRepost(post)} /> */}
diff --git a/mobile/components/view/feed/feed-view.tsx b/mobile/components/view/feed/feed-view.tsx
index 51be7b88..6059d579 100644
--- a/mobile/components/view/feed/feed-view.tsx
+++ b/mobile/components/view/feed/feed-view.tsx
@@ -6,7 +6,7 @@ import Layout from "@gno/components/layout";
import { Post } from "@gno/types";
import useScrollToTop from "@gno/components/utils/useScrollToTopWithOffset";
import EmptyFeedList from "@gno/components/feed/empty-feed-list";
-import { Tweet } from "@gno/components/feed/tweet";
+import { PostRow } from "@gno/components/feed/post-row";
type Props = {
totalPosts: number;
@@ -118,7 +118,7 @@ export default function FeedView({ totalPosts, onPress, onGnod, address, type }:
ListEmptyComponent={}
keyExtractor={(item) => `${item.id}`}
contentContainerStyle={styles.flatListContent}
- renderItem={({ item }) => }
+ renderItem={({ item }) => }
onEndReached={handleEndReached}
onEndReachedThreshold={0.1}
/>
diff --git a/mobile/src/hooks/use-feed.ts b/mobile/src/hooks/use-feed.ts
index f02d6c77..bcd226aa 100644
--- a/mobile/src/hooks/use-feed.ts
+++ b/mobile/src/hooks/use-feed.ts
@@ -4,7 +4,7 @@ import { useUserCache } from "./use-user-cache";
import useGnoJsonParser from "./use-gno-json-parser";
import { useIndexerContext } from "@gno/provider/indexer-provider";
import { Alert } from "react-native";
-import base64 from "base-64";
+
interface ThreadPosts {
data: Post[];
n_posts: number;