reza added somefix

master
Reza_ashrafi 3 years ago
parent b1eb6c81ea
commit 600a46ed2a
  1. 11
      src/screens/Blog/index.js
  2. 2
      src/screens/Blogs/layouts/Hashtags.js

@ -145,7 +145,7 @@ export const Blog = ({ getInfo, blog, getList, blogs, route }) => {
</View>
</LinearGradient>
</View>
<View style={[tw("flex my-5"), { textAlign: "right" }]}>
{/* <View style={[tw("flex my-5"), { textAlign: "right" }]}>
<Text
style={{
fontFamily: "bold",
@ -155,7 +155,6 @@ export const Blog = ({ getInfo, blog, getList, blogs, route }) => {
>
{blog?.title}
</Text>
{blog?.text && (
<WebView
style={[
tw(
@ -164,7 +163,7 @@ export const Blog = ({ getInfo, blog, getList, blogs, route }) => {
{ fontSize: fontSize.base },
]}
originWhitelist={["*"]}
source={{ html: "<h1>reza</h1>", textAlign: "right" }}
source={{ html: blog.text, textAlign: "right" }}
containerStyle={{
textAlign: "right",
fontSize: fontSize.base,
@ -174,8 +173,8 @@ export const Blog = ({ getInfo, blog, getList, blogs, route }) => {
alignItems: "center",
}}
/>
)}
</View>
</View> */}
<Header title={"پیشنهادی "} />
{blogs.length && (
<FlatList
@ -185,7 +184,7 @@ export const Blog = ({ getInfo, blog, getList, blogs, route }) => {
style={[tw("flex flex-row mt-3 pb-3")]}
data={blogs}
renderItem={({ item }) => <New blog={item} />}
keyExtractor={(item, index) => { return index }}
keyExtractor={(item, index) => { return item.id }}
/>
)}
</View>

@ -36,7 +36,7 @@ export const Hashtags = ({ hashtags }) => {
style={[tw("flex flex-row mt-3 pb-3 mr-2")]}
data={hashtags}
renderItem={({ item }) => <Hashtag hashtag={item} />}
keyExtractor={(item) => item.id}
keyExtractor={(item, index) => {return index}}
/>
</View>
);

Loading…
Cancel
Save