|
|
|
@ -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> |
|
|
|
|