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

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

Loading…
Cancel
Save