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