diff --git a/assets/images/lock@2x.png b/assets/images/lock@2x.png
new file mode 100644
index 0000000..76aae6e
Binary files /dev/null and b/assets/images/lock@2x.png differ
diff --git a/assets/images/lock@3x.png b/assets/images/lock@3x.png
new file mode 100644
index 0000000..53b851e
Binary files /dev/null and b/assets/images/lock@3x.png differ
diff --git a/components/Post/index.jsx b/components/Post/index.jsx
index 647d86a..b392a20 100644
--- a/components/Post/index.jsx
+++ b/components/Post/index.jsx
@@ -6,7 +6,6 @@ import {
TouchableWithoutFeedback,
ActivityIndicator,
Image as NativeImage,
- Platform,
} from "react-native";
import React, { useState } from "react";
import { useTailwind } from "tailwind-rn";
@@ -23,6 +22,8 @@ import { get } from "../../utils/storeInfo";
const blurhash = "LcKUTa%gOYWBYRt6xuoJo~s8V@fk";
+const vipBlurhash = "LhPFg0K+TZs;G^G9n5WVEen%n,WV";
+
export default function Post({ blur, data }) {
const tailwind = useTailwind();
const navigation = useNavigation();
@@ -171,11 +172,8 @@ export default function Post({ blur, data }) {
)}
-
- {formatTimestamp(data?.ct)}
-
{blur ? (
({ url: item.urls[0] }));
+
+ if (blur) {
+ return (
+
+ {media.length > 1 ? (
+ media.map((item, index) => (
+
+ navigation.navigate("WebWithoutHeader", {
+ uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip",
+ })
+ }
+ style={{
+ aspectRatio: 1,
+ ...tailwind("basis-1/3 p-0.5 relative"),
+ }}
+ >
+
+
+
+
+
+ ))
+ ) : (
+
+ navigation.navigate("WebWithoutHeader", {
+ uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip",
+ })
+ }
+ style={{
+ width: 200,
+ height: 250,
+ ...tailwind("relative"),
+ }}
+ >
+
+
+
+
+
+ )}
+
+ );
+ }
+
if (images.length === 0) return null;
+
return (
{media.length > 1 ? (
@@ -252,22 +320,14 @@ function ImageDisplay({ blur, media }) {
- navigation.navigate("WebWithoutHeader", {
- uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip",
- })
- : () => {
- setIsModalVisible(true);
- setImageIndex(index);
- }
- }
+ onPress={() => {
+ setIsModalVisible(true);
+ setImageIndex(index);
+ }}
style={{ aspectRatio: 1, ...tailwind("basis-1/3 p-0.5") }}
>
- navigation.navigate("WebWithoutHeader", {
- uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip",
- })
- : () => {
- setIsModalVisible(true);
- setImageIndex(0);
- }
- }
+ onPress={() => {
+ setIsModalVisible(true);
+ setImageIndex(0);
+ }}
style={{
width:
media[0].w < media[0].h ? (media[0].w / media[0].h) * 200 : 250,
@@ -299,7 +352,6 @@ function ImageDisplay({ blur, media }) {
>
+
+
+
+
+
+ );
+ }
+
return (
item.id}
/>
{blur && (
-
+ navigation.navigate("WebWithoutHeader", {
+ uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip",
+ })
+ }
style={tailwind(
"flex flex-row items-center justify-between h-12 bg-[#301024] px-4"
)}
@@ -140,16 +146,15 @@ export default function FeedPosts({ blur }) {
-
- 开通会员订阅动态
+
+ 开通会员订阅全部
-
- navigation.navigate("WebWithoutHeader", {
- uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip",
- })
- }
+
¥99/永久
-
-
+
+
)}
);
diff --git a/screeens/Posts/FollowPosts/index.jsx b/screeens/Posts/FollowPosts/index.jsx
index 49df22b..e01e1e2 100644
--- a/screeens/Posts/FollowPosts/index.jsx
+++ b/screeens/Posts/FollowPosts/index.jsx
@@ -166,7 +166,13 @@ export default function FollowPosts({ blur }) {
keyExtractor={(item) => item.id}
/>
{blur && (
-
+ navigation.navigate("WebWithoutHeader", {
+ uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip",
+ })
+ }
style={tailwind(
"flex flex-row items-center justify-between h-12 bg-[#301024] px-4"
)}
@@ -175,25 +181,24 @@ export default function FollowPosts({ blur }) {
-
- 开通会员订阅动态
+
+ 开通会员订阅全部
-
- navigation.navigate("WebWithoutHeader", {
- uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip",
- })
- }
+
- 点我看看
+ ¥99/永久
-
-
+
+
)}
);