fixed something

master
Reza_ashrafi 3 years ago
parent 0ecaab0b08
commit 588af7f6b2
  1. 5
      src/screens/Address/index.js
  2. 41
      src/screens/Home/components/Blogs.js

@ -7,7 +7,6 @@ import {
StatusBar, StatusBar,
Platform, Platform,
Dimensions, Dimensions,
Appearance,
KeyboardAvoidingView, KeyboardAvoidingView,
TextInput, TextInput,
TouchableWithoutFeedback, TouchableWithoutFeedback,
@ -24,7 +23,6 @@ import Navbar from "../../components/Navbar";
import CustomPressable from "../../components/Pressable"; import CustomPressable from "../../components/Pressable";
import CustomTextInput from "../../components/CustomTextInput"; import CustomTextInput from "../../components/CustomTextInput";
import Select from "../../components/Select"; import Select from "../../components/Select";
import MapSelector from "../../components/MapSelector";
//style //style
import tw from "tailwind-rn"; import tw from "tailwind-rn";
@ -56,12 +54,11 @@ const Address = ({
}) => { }) => {
const [addressFields, setAddressFields] = useState({}); const [addressFields, setAddressFields] = useState({});
const [mapAddress, setMapAddress] = useState(null); const [mapAddress, setMapAddress] = useState(null);
const colorScheme = Appearance.getColorScheme();
const navigation = useNavigation(); const navigation = useNavigation();
const profilePage = React.useMemo(() => { const profilePage = React.useMemo(() => {
return route.params?.type === "profile"; return route.params?.type === "profile";
}); },[route]);
useEffect(() => { useEffect(() => {
getProvince(); getProvince();

@ -4,10 +4,8 @@ import {
Image, Image,
Text, Text,
Dimensions, Dimensions,
TouchableOpacity,
FlatList, FlatList,
Pressable, Pressable,
Appearance,
Platform, Platform,
} from "react-native"; } from "react-native";
import { connect } from "react-redux"; import { connect } from "react-redux";
@ -15,6 +13,7 @@ import { useNavigation } from "@react-navigation/native";
//components //components
import Header from "../components/Header"; import Header from "../components/Header";
import Avatar from "../../../components/Avatar";
//Style //Style
import tw from "tailwind-rn"; import tw from "tailwind-rn";
@ -121,26 +120,28 @@ const Blog = ({ blog, mobile, theme }) => {
}, },
]} ]}
> >
حامد دژبانی نسب سر دبیر بخش وبلاگ دانوین
</Text>
</View>
<View style={tw("flex-row-reverse items-center")}>
<Text
style={[
tw("ml-1"),
{
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "regular",
fontSize: mobile ? fontSize.xs : fontSize.base,
},
]}
>
۳۰ دقیقه
</Text> </Text>
</View> </View>
{blog?.duration ? (
<View style={tw("flex-row-reverse items-center")}>
<Text
style={[
tw("ml-1"),
{
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "regular",
fontSize: mobile ? fontSize.xs : fontSize.base,
},
]}
>
۳۰ دقیقه
</Text>
</View>
) : null}
</View> </View>
</View> </View>
</Pressable> </Pressable>

Loading…
Cancel
Save