|
|
|
@ -17,7 +17,6 @@ import { LinearGradient } from "expo-linear-gradient"; |
|
|
|
|
import HTMLView from "react-native-htmlview"; |
|
|
|
|
|
|
|
|
|
//components
|
|
|
|
|
import Hashtags from "../Blogs/layouts/Hashtags"; |
|
|
|
|
import Header from "../Blogs/layouts/Header"; |
|
|
|
|
import New from "../Blogs/layouts/New"; |
|
|
|
|
import Navbar from "../../components/Navbar"; |
|
|
|
@ -76,7 +75,6 @@ export const Blog = ({ getInfo, blog, getList, blogs, route, theme }) => { |
|
|
|
|
style={[styles.container, tw("flex")]} |
|
|
|
|
> |
|
|
|
|
<View style={tw("flex px-4 pb-24")}> |
|
|
|
|
<Hashtags /> |
|
|
|
|
<View |
|
|
|
|
style={[ |
|
|
|
|
tw("w-full rounded-sm overflow-hidden relative"), |
|
|
|
@ -184,7 +182,7 @@ export const Blog = ({ getInfo, blog, getList, blogs, route, theme }) => { |
|
|
|
|
stylesheet={{ |
|
|
|
|
p: { |
|
|
|
|
color: |
|
|
|
|
theme === "bold" |
|
|
|
|
theme === "light" |
|
|
|
|
? Colors.theme1.gray20 |
|
|
|
|
: Colors.theme1.grayF9, |
|
|
|
|
textAlign: "right", |
|
|
|
@ -223,7 +221,7 @@ export const Blog = ({ getInfo, blog, getList, blogs, route, theme }) => { |
|
|
|
|
horizontal={true} |
|
|
|
|
inverted={true} |
|
|
|
|
style={[tw("flex flex-row mt-3 pb-3")]} |
|
|
|
|
data={blogs} |
|
|
|
|
data={blogs.filter((blog) => blog.id !== route.params.id)} |
|
|
|
|
renderItem={({ item }) => <New blog={item} />} |
|
|
|
|
keyExtractor={(item, index) => { |
|
|
|
|
return item.id; |
|
|
|
|