reza fixed something

master
Reza_ashrafi 3 years ago
parent ccd942f61b
commit 0571857e26
  1. BIN
      Presentation 1 1.pptx
  2. 112
      navigation/index.js
  3. 22
      src/components/Avatar.js
  4. 16
      src/components/Blur.js
  5. 14
      src/components/CustomTextInput.js
  6. 13
      src/components/Divider.js
  7. 13
      src/components/Empty.js
  8. 87
      src/components/Navbar.js
  9. 11
      src/components/Search.js
  10. 11
      src/components/Select.js
  11. 2
      src/redux/reducers/public.js
  12. 11
      src/screens/AR/components/Book.js
  13. 2
      src/screens/AR/index.js
  14. 20
      src/screens/Activation/index.js
  15. 7
      src/screens/Address/index.js
  16. 18
      src/screens/Blog/index.js
  17. 1
      src/screens/Blogs/index.js
  18. 2
      src/screens/Blogs/layouts/Hashtags.js
  19. 6
      src/screens/Blogs/layouts/Header.js
  20. 5
      src/screens/Blogs/layouts/New.js
  21. 10
      src/screens/Blogs/layouts/Single.js
  22. 26
      src/screens/Blogs/layouts/Target.js
  23. 3
      src/screens/Contact/index.js
  24. 1
      src/screens/Contact/layouts/Ticket.js
  25. 1
      src/screens/Contact/layouts/Tickets.js
  26. 32
      src/screens/Faq/components/Instance.js
  27. 5
      src/screens/Faq/index.js
  28. 9
      src/screens/Home/components/Blogs.js
  29. 4
      src/screens/Home/components/Header.js
  30. 13
      src/screens/Home/components/MyBooks.js
  31. 4
      src/screens/Home/components/Videos.js
  32. 23
      src/screens/Login/index.js
  33. 30
      src/screens/OrderDetails/components/Book.js
  34. 145
      src/screens/OrderDetails/index.js
  35. 28
      src/screens/OrdersFollowUp/components/Order.js
  36. 1
      src/screens/OrdersFollowUp/index.js
  37. 50
      src/screens/Otp/index.js
  38. 81
      src/screens/Product/components/Book.js
  39. 24
      src/screens/Product/components/Comments.js
  40. 1
      src/screens/Product/components/Info.js
  41. 10
      src/screens/Product/components/LinkBox.js
  42. 20
      src/screens/Product/components/Rates.js
  43. 1
      src/screens/Product/index.js
  44. 2
      src/screens/Products/components/Header.js
  45. 55
      src/screens/Products/components/Main.js
  46. 6
      src/screens/Products/index.js
  47. 30
      src/screens/Profile/components/List.js
  48. 1
      src/screens/Profile/components/MyCourses/index.js
  49. 1
      src/screens/Profile/components/ProfileAddress/index.js
  50. 14
      src/screens/Profile/components/ProfileBookmark/index.js
  51. 20
      src/screens/Profile/components/Trophy.js
  52. 23
      src/screens/Profile/components/User.js
  53. 38
      src/screens/Rules/index.js
  54. 9
      src/screens/ShoppingCart/components/Code.js
  55. 40
      src/screens/ShoppingCart/components/Product.js
  56. 51
      src/screens/ShoppingCart/index.js
  57. 1
      src/screens/Splash/index.js
  58. 29
      src/screens/Video/components/Season.js
  59. 13
      src/screens/Video/index.js
  60. 4
      src/screens/VideoDisplay/index.js
  61. 26
      src/screens/Videos/components/MostViewedVideo.js
  62. 4
      src/screens/Videos/components/NewestVideo.js

Binary file not shown.

@ -64,22 +64,21 @@ const BottomTabNavigator = ({ theme }) => {
screenOptions={{ screenOptions={{
tabBarHideOnKeyboard: true, tabBarHideOnKeyboard: true,
headerShown, headerShown,
contentStyle: {
backgroundColor: "white",
},
tabBarIconStyle: { tabBarIconStyle: {
transform: [{ scaleX: -1 }], transform: [{ scaleX: -1 }],
}, },
tabBarLabelPosition: "below-icon", tabBarLabelPosition: "below-icon",
tabBarActiveTintColor: Colors.theme1.green79, tabBarActiveTintColor:
tabBarInactiveTintColor: "grey", theme === "light" ? Colors.theme1.green79 : Colors.theme1.greenCF,
tabBarInactiveTintColor:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.white,
tabBarStyle: { tabBarStyle: {
backgroundColor: backgroundColor:
theme === "light" ? Colors.theme1.white : Colors.theme1.dark, theme === "light" ? Colors.theme1.white : Colors.theme1.dark,
transform: [{ scaleX: -1 }], transform: [{ scaleX: -1 }],
height: 65 + insets.bottom, height: 65 + insets.bottom,
borderWidth : 0
}, },
tabBarLabelStyle: { tabBarLabelStyle: {
transform: [{ scaleX: -1 }, { translateY: -5 }], transform: [{ scaleX: -1 }, { translateY: -5 }],
fontSize: fontSize.xs, fontSize: fontSize.xs,
@ -102,7 +101,11 @@ const BottomTabNavigator = ({ theme }) => {
> >
<Path <Path
d="M12.62 3.974 5.079 9.85a6.658 6.658 0 0 0-2.281 4.645v10.368a5.912 5.912 0 0 0 5.89 5.9h16.2a5.909 5.909 0 0 0 5.89-5.89V14.691a6.609 6.609 0 0 0-2.518-4.827l-8.644-6.058a6.278 6.278 0 0 0-6.996.168Z" d="M12.62 3.974 5.079 9.85a6.658 6.658 0 0 0-2.281 4.645v10.368a5.912 5.912 0 0 0 5.89 5.9h16.2a5.909 5.909 0 0 0 5.89-5.89V14.691a6.609 6.609 0 0 0-2.518-4.827l-8.644-6.058a6.278 6.278 0 0 0-6.996.168Z"
fill={Colors.theme1.green79} fill={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF
}
/> />
<Path <Path
data-name="Vector" data-name="Vector"
@ -119,11 +122,18 @@ const BottomTabNavigator = ({ theme }) => {
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width={33.58} width={33.58}
height={33.579} height={33.579}
style={{
transform: [{scale : 0.7}]
}}
> >
<Path <Path
d="M12.62 3.974 5.079 9.85a6.658 6.658 0 0 0-2.281 4.645v10.368a5.912 5.912 0 0 0 5.89 5.9h16.2a5.909 5.909 0 0 0 5.89-5.89V14.691a6.609 6.609 0 0 0-2.518-4.827l-8.644-6.058a6.278 6.278 0 0 0-6.996.168Z" d="M12.62 3.974 5.079 9.85a6.658 6.658 0 0 0-2.281 4.645v10.368a5.912 5.912 0 0 0 5.89 5.9h16.2a5.909 5.909 0 0 0 5.89-5.89V14.691a6.609 6.609 0 0 0-2.518-4.827l-8.644-6.058a6.278 6.278 0 0 0-6.996.168Z"
fill="none" fill="none"
stroke={Colors.theme1.green79} stroke={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white
}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -132,7 +142,11 @@ const BottomTabNavigator = ({ theme }) => {
data-name="Vector" data-name="Vector"
d="M16.79 25.471v-6.693" d="M16.79 25.471v-6.693"
fill="none" fill="none"
stroke={Colors.theme1.green79} stroke={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white
}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -155,7 +169,11 @@ const BottomTabNavigator = ({ theme }) => {
> >
<Path <Path
d="M32.207 24.227V6.798a2.869 2.869 0 0 0-3.179-2.875h-.088a27.857 27.857 0 0 0-10.35 3.422l-.249.159a1.641 1.641 0 0 1-1.552 0l-.361-.216A27.72 27.72 0 0 0 6.09 3.909a2.864 2.864 0 0 0-3.162 2.874v17.444a2.981 2.981 0 0 0 2.547 2.859l.425.058a37.976 37.976 0 0 1 10.892 3.524l.059.029a1.6 1.6 0 0 0 1.405 0 37.631 37.631 0 0 1 10.921-3.552l.483-.058a2.981 2.981 0 0 0 2.547-2.86Z" d="M32.207 24.227V6.798a2.869 2.869 0 0 0-3.179-2.875h-.088a27.857 27.857 0 0 0-10.35 3.422l-.249.159a1.641 1.641 0 0 1-1.552 0l-.361-.216A27.72 27.72 0 0 0 6.09 3.909a2.864 2.864 0 0 0-3.162 2.874v17.444a2.981 2.981 0 0 0 2.547 2.859l.425.058a37.976 37.976 0 0 1 10.892 3.524l.059.029a1.6 1.6 0 0 0 1.405 0 37.631 37.631 0 0 1 10.921-3.552l.483-.058a2.981 2.981 0 0 0 2.547-2.86Z"
fill={Colors.theme1.green79} fill={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF
}
/> />
<Path <Path
data-name="Vector" data-name="Vector"
@ -172,10 +190,17 @@ const BottomTabNavigator = ({ theme }) => {
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width={35.135} width={35.135}
height={34.763} height={34.763}
style={{
transform: [{scale : 0.7}]
}}
> >
<G <G
fill="none" fill="none"
stroke={Colors.theme1.green79} stroke={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white
}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -204,8 +229,16 @@ const BottomTabNavigator = ({ theme }) => {
<G data-name="Group 2000"> <G data-name="Group 2000">
<Path <Path
d="M25.421 29.241H8.974C4.04 29.241.75 26.392.75 19.744V10.25c0-6.651 3.29-9.5 8.224-9.5h16.447c4.935 0 8.229 2.849 8.229 9.5v9.5c0 6.642-3.294 9.491-8.229 9.491Z" d="M25.421 29.241H8.974C4.04 29.241.75 26.392.75 19.744V10.25c0-6.651 3.29-9.5 8.224-9.5h16.447c4.935 0 8.229 2.849 8.229 9.5v9.5c0 6.642-3.294 9.491-8.229 9.491Z"
fill={Colors.theme1.green79} fill={
stroke={Colors.theme1.green79} theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF
}
stroke={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF
}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -223,12 +256,23 @@ const BottomTabNavigator = ({ theme }) => {
</G> </G>
</Svg> </Svg>
) : ( ) : (
<Svg xmlns="http://www.w3.org/2000/svg" width={35} height={32}> <Svg
xmlns="http://www.w3.org/2000/svg"
width={35}
height={32}
style={{
transform: [{ scale: 0.7 }],
}}
>
<G data-name="Group 1999"> <G data-name="Group 1999">
<Path <Path
d="M25.421 29.241H8.974C4.04 29.241.75 26.392.75 19.744V10.25c0-6.651 3.29-9.5 8.224-9.5h16.447c4.935 0 8.229 2.849 8.229 9.5v9.5c0 6.642-3.294 9.491-8.229 9.491Z" d="M25.421 29.241H8.974C4.04 29.241.75 26.392.75 19.744V10.25c0-6.651 3.29-9.5 8.224-9.5h16.447c4.935 0 8.229 2.849 8.229 9.5v9.5c0 6.642-3.294 9.491-8.229 9.491Z"
fill="none" fill="none"
stroke={Colors.theme1.green79} stroke={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white
}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -238,7 +282,11 @@ const BottomTabNavigator = ({ theme }) => {
data-name="Vector" data-name="Vector"
d="M12.427 14.995v-2.083c0-2.673 1.892-3.766 4.2-2.43l1.805 1.042 1.806 1.041c2.308 1.336 2.308 3.523 0 4.86l-1.806 1.041-1.805 1.046c-2.308 1.332-4.2.239-4.2-2.434v-2.083Z" d="M12.427 14.995v-2.083c0-2.673 1.892-3.766 4.2-2.43l1.805 1.042 1.806 1.041c2.308 1.336 2.308 3.523 0 4.86l-1.806 1.041-1.805 1.046c-2.308 1.332-4.2.239-4.2-2.434v-2.083Z"
fill="none" fill="none"
stroke={Colors.theme1.green79} stroke={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white
}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -267,7 +315,11 @@ const BottomTabNavigator = ({ theme }) => {
height={31.017} height={31.017}
> >
<G <G
fill={Colors.theme1.green79} fill={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF
}
stroke={"white"} stroke={"white"}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
@ -286,10 +338,17 @@ const BottomTabNavigator = ({ theme }) => {
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width={31.017} width={31.017}
height={31.017} height={31.017}
style={{
transform: [{ scale: 0.8 }],
}}
> >
<G <G
fill="none" fill="none"
stroke={Colors.theme1.green79} stroke={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white
}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -318,7 +377,13 @@ const BottomTabNavigator = ({ theme }) => {
width={31.192} width={31.192}
height={31.192} height={31.192}
> >
<G fill={Colors.theme1.green79}> <G
fill={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF
}
>
<Path d="M15.803 14.127a2.363 2.363 0 0 0-.429 0 5.777 5.777 0 1 1 .429 0Z" /> <Path d="M15.803 14.127a2.363 2.363 0 0 0-.429 0 5.777 5.777 0 1 1 .429 0Z" />
<Path <Path
data-name="Vector" data-name="Vector"
@ -331,10 +396,17 @@ const BottomTabNavigator = ({ theme }) => {
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width={31.192} width={31.192}
height={31.192} height={31.192}
style={{
transform: [{ scale: 0.8 }],
}}
> >
<G <G
fill="none" fill="none"
stroke={Colors.theme1.green79} stroke={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white
}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}

@ -1,20 +1,24 @@
import React from "react"; import React from "react";
import { Image, View } from "react-native"; import { Image, View } from "react-native";
import Svg, { G, Path } from "react-native-svg"; import Svg, { G, Path } from "react-native-svg";
import { connect } from "react-redux";
//style //style
import tw from "tailwind-rn"; import tw from "tailwind-rn";
import Colors from "../constants/Colors";
function Avatar({ source, size }) { function Avatar({ source, size, theme }) {
return ( return (
<View <View
style={[ style={[
tw( tw("rounded-full overflow-hidden flex justify-center items-center"),
"bg-gray-100 rounded-full overflow-hidden flex justify-center items-center"
),
{ {
minWidth: size, minWidth: size,
minHeight: size, minHeight: size,
backgroundColor:
theme === "light"
? Colors.theme1.grayE3
: Colors.theme1.white + '55',
}, },
]} ]}
> >
@ -35,13 +39,13 @@ function Avatar({ source, size }) {
<Path d="M18.488 3.081a7.311 7.311 0 0 0-.185 14.621 1.243 1.243 0 0 1 .339 0h.108a7.313 7.313 0 0 0-.262-14.621Z" /> <Path d="M18.488 3.081a7.311 7.311 0 0 0-.185 14.621 1.243 1.243 0 0 1 .339 0h.108a7.313 7.313 0 0 0-.262-14.621Z" />
<Path <Path
d="M18.488 5.081a5.324 5.324 0 0 0-5.318 5.318c0 1.395.528 2.705 1.486 3.689.94.965 2.215 1.535 3.6 1.61.165-.011.328-.01.484.002a5.31 5.31 0 0 0 5.066-5.304 5.324 5.324 0 0 0-5.318-5.315m0-2a7.325 7.325 0 0 1 7.318 7.318 7.3 7.3 0 0 1-7.056 7.303h-.108a1.243 1.243 0 0 0-.339 0c-4.036-.14-7.133-3.344-7.133-7.303a7.325 7.325 0 0 1 7.318-7.318Z" d="M18.488 5.081a5.324 5.324 0 0 0-5.318 5.318c0 1.395.528 2.705 1.486 3.689.94.965 2.215 1.535 3.6 1.61.165-.011.328-.01.484.002a5.31 5.31 0 0 0 5.066-5.304 5.324 5.324 0 0 0-5.318-5.315m0-2a7.325 7.325 0 0 1 7.318 7.318 7.3 7.3 0 0 1-7.056 7.303h-.108a1.243 1.243 0 0 0-.339 0c-4.036-.14-7.133-3.344-7.133-7.303a7.325 7.325 0 0 1 7.318-7.318Z"
fill="#818181" fill={theme === 'light' ? "#818181" : Colors.theme1.white}
/> />
<G data-name="Vector"> <G data-name="Vector">
<Path d="M26.314 21.8a15.3 15.3 0 0 0-15.637 0 6.081 6.081 0 0 0-3.035 4.976 6.03 6.03 0 0 0 3.02 4.945 14.234 14.234 0 0 0 7.826 2.172 14.234 14.234 0 0 0 7.826-2.172 6.078 6.078 0 0 0 3.02-4.976 6.066 6.066 0 0 0-3.02-4.945Z" /> <Path d="M26.314 21.8a15.3 15.3 0 0 0-15.637 0 6.081 6.081 0 0 0-3.035 4.976 6.03 6.03 0 0 0 3.02 4.945 14.234 14.234 0 0 0 7.826 2.172 14.234 14.234 0 0 0 7.826-2.172 6.078 6.078 0 0 0 3.02-4.976 6.066 6.066 0 0 0-3.02-4.945Z" />
<Path <Path
d="M18.507 21.651c-2.528 0-4.977.661-6.721 1.814-1.383.926-2.144 2.102-2.144 3.311 0 1.201.756 2.366 2.129 3.282l.006.003c1.734 1.165 4.18 1.833 6.711 1.833 2.53 0 4.977-.668 6.708-1.83 1.762-1.189 2.136-2.455 2.138-3.31-.01-.862-.388-2.129-2.129-3.29-1.729-1.152-4.17-1.813-6.698-1.813m0-2c2.831 0 5.658.716 7.807 2.15 1.942 1.293 3.005 3.05 3.02 4.945 0 1.91-1.078 3.666-3.02 4.976-4.313 2.896-11.339 2.896-15.652 0-1.942-1.294-3.02-3.05-3.02-4.946 0-1.895 1.078-3.666 3.035-4.976 2.165-1.433 5-2.149 7.83-2.149Z" d="M18.507 21.651c-2.528 0-4.977.661-6.721 1.814-1.383.926-2.144 2.102-2.144 3.311 0 1.201.756 2.366 2.129 3.282l.006.003c1.734 1.165 4.18 1.833 6.711 1.833 2.53 0 4.977-.668 6.708-1.83 1.762-1.189 2.136-2.455 2.138-3.31-.01-.862-.388-2.129-2.129-3.29-1.729-1.152-4.17-1.813-6.698-1.813m0-2c2.831 0 5.658.716 7.807 2.15 1.942 1.293 3.005 3.05 3.02 4.945 0 1.91-1.078 3.666-3.02 4.976-4.313 2.896-11.339 2.896-15.652 0-1.942-1.294-3.02-3.05-3.02-4.946 0-1.895 1.078-3.666 3.035-4.976 2.165-1.433 5-2.149 7.83-2.149Z"
fill="#818181" fill={theme === 'light' ? "#818181" : Colors.theme1.white}
/> />
</G> </G>
</G> </G>
@ -51,4 +55,8 @@ function Avatar({ source, size }) {
); );
} }
export default Avatar; const mapStateToProps = (state) => ({
theme: state.publicApi.theme,
});
export default connect(mapStateToProps)(Avatar);

@ -1,16 +1,26 @@
import React from "react"; import React from "react";
import { BlurView } from "expo-blur"; import { BlurView } from "expo-blur";
import { ActivityIndicator } from "react-native"; import { ActivityIndicator } from "react-native";
import tw from 'tailwind-rn'; import { connect } from "react-redux";
import tw from "tailwind-rn";
export default function Blur() { function Blur({ theme }) {
return ( return (
<BlurView <BlurView
intensity={280} intensity={280}
// tint="dark" // tint="dark"
style={[{ width: "100%", height: "100%" }, tw('flex-1 flex justify-center items-center')]} style={[
{ width: "100%", height: "100%" },
tw("flex-1 flex justify-center items-center"),
]}
> >
<ActivityIndicator size="large" color="#12CF7F" /> <ActivityIndicator size="large" color="#12CF7F" />
</BlurView> </BlurView>
); );
} }
const mapStateToProps = (state) => ({
theme: state.publicApi.theme,
});
export default connect(mapStateToProps)(Blur);

@ -41,15 +41,16 @@ const FloatingLabelInput = ({
: -Math.floor(fontSize.sm), : -Math.floor(fontSize.sm),
}, },
], ],
color: !isFocused ? Colors.theme1.gray2077 : Colors.theme1.green79, backgroundColor : theme === 'light' ? Colors.theme1.white : Colors.theme1.dark,
color: !isFocused ? theme === 'light' ? Colors.theme1.gray2077 : Colors.theme1.white + 'aa' : Colors.theme1.green79,
}, },
inputStyle: { inputStyle: {
fontSize: fontSize.lg, fontSize: fontSize.lg,
color: Colors.theme1.black, color: theme === 'light' ? Colors.theme1.black : Colors.theme1.white,
borderWidth: 1, borderWidth: 1,
borderColor: isFocused borderColor: isFocused
? Colors.theme1.greenC8 ? Colors.theme1.greenC8
: Colors.theme1.gray2077 + "66", : theme === "light" ? Colors.theme1.gray2077 + "66" : Colors.theme1.white + 'aa',
textAlign: textAlign, textAlign: textAlign,
fontFamily: "regular", fontFamily: "regular",
direction: direction ? direction : "rtl", direction: direction ? direction : "rtl",
@ -63,12 +64,14 @@ const FloatingLabelInput = ({
setIsFocused(false); setIsFocused(false);
} }
}, [value]); }, [value]);
console.log(theme);
return ( return (
<View style={tw("mt-4")}> <View style={tw("mt-4 pb-1")}>
<Text <Text
style={[ style={[
styles.labelStyle, styles.labelStyle,
tw("px-1 z-10 bg-white absolute right-3 text-center"), tw("px-1 z-10 absolute right-3 text-center"),
]} ]}
onPress={() => setIsFocused(true)} onPress={() => setIsFocused(true)}
> >
@ -89,6 +92,7 @@ const FloatingLabelInput = ({
onBlur={() => (value ? {} : setIsFocused(() => false))} onBlur={() => (value ? {} : setIsFocused(() => false))}
keyboardType={keyboardType} keyboardType={keyboardType}
multiline={multiline} multiline={multiline}
placeholderTextColor={theme === 'light' ? Colors.theme1.gray20 + 'aa' : Colors.theme1.white + '55'}
/> />
</View> </View>
); );

@ -1,19 +1,24 @@
import React from "react"; import React from "react";
import { View, Text } from "react-native"; import { View, Text } from "react-native";
import { connect } from "react-redux";
import tw from "tailwind-rn"; import tw from "tailwind-rn";
const Divider = ({ type }) => { const Divider = ({ type, theme }) => {
return ( return (
<View <View
style={[ style={[
tw(`bg-gray-100 my-4`), tw(`bg-gray-100 ${theme === "light" ? "" : "bg-opacity-40"} my-4`),
{ {
height: type === "horizontal" ? "100%" : 1, height: type === "horizontal" ? "100%" : 1,
width: type === 'horizontal' ? 1 : "100%", width: type === "horizontal" ? 1 : "100%",
}, },
]} ]}
></View> ></View>
); );
}; };
export default Divider; const mapStateToProps = (state) => ({
theme: state.publicApi.theme,
});
export default connect(mapStateToProps)(Divider);

@ -16,7 +16,8 @@ const Empty = ({ text, buttonText, buttonAction, theme }) => {
fontFamily: "regular", fontFamily: "regular",
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
transform: [{ translateY: -50 }], transform: [{ translateY: -50 }],
color: Colors.theme1.gray20, color:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.white,
}, },
]} ]}
> >
@ -26,7 +27,11 @@ const Empty = ({ text, buttonText, buttonAction, theme }) => {
<Pressable <Pressable
style={[ style={[
tw("py-2 px-5 rounded-sm"), tw("py-2 px-5 rounded-sm"),
{ backgroundColor: Colors.theme1.greenCF }, {
backgroundColor: theme === "light" ? Colors.theme1.greenCF : null,
borderWidth: theme === "light" ? 0 : 1,
borderColor: Colors.theme1.greenCF,
},
]} ]}
onPress={() => buttonAction()} onPress={() => buttonAction()}
> >
@ -36,6 +41,10 @@ const Empty = ({ text, buttonText, buttonAction, theme }) => {
{ {
fontFamily: "regular", fontFamily: "regular",
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
color:
theme === "light"
? Colors.theme1.white
: Colors.theme1.greenCF,
}, },
]} ]}
> >

@ -49,24 +49,28 @@ const Navbar = ({
).length; ).length;
}, [headerOptions, userFavoriteList]); }, [headerOptions, userFavoriteList]);
const Button = useCallback(({ icon, route, state }) => { const Button = useCallback(
return ( ({ icon, route, state }) => {
<TouchableOpacity return (
style={[ <TouchableOpacity
tw("rounded-md p-1"), style={[
{ tw("rounded-md p-1"),
backgrounds: Colors.theme1.greenCF + "05", {
borderColor: Colors.theme1.green79, backgrounds: Colors.theme1.greenCF + "05",
borderWidth: 1, borderColor:
marginLeft: route === "AR" ? 10 : 0, theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
}, borderWidth: 1,
]} marginLeft: route === "AR" ? 10 : 0,
onPress={() => navigation.navigate(route, { page: state })} },
> ]}
{icon} onPress={() => navigation.navigate(route, { page: state })}
</TouchableOpacity> >
); {icon}
}, []); </TouchableOpacity>
);
},
[theme]
);
return ( return (
<View <View
style={[ style={[
@ -87,7 +91,9 @@ const Navbar = ({
name="arrow-forward" name="arrow-forward"
style={tw("mr-2")} style={tw("mr-2")}
size={24} size={24}
color={"#52796F"} color={
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white
}
onPress={() => navigation.goBack()} onPress={() => navigation.goBack()}
/> />
) : null ) : null
@ -97,7 +103,8 @@ const Navbar = ({
style={{ style={{
fontFamily: "demi", fontFamily: "demi",
fontSize: fontSize.xl, fontSize: fontSize.xl,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
paddingRight: 16, paddingRight: 16,
}} }}
> >
@ -113,7 +120,9 @@ const Navbar = ({
> >
<G <G
fill="none" fill="none"
stroke="#52796F" stroke={
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white
}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={2} strokeWidth={2}
@ -172,7 +181,9 @@ const Navbar = ({
name="arrow-back" name="arrow-back"
style={tw("mr-2")} style={tw("mr-2")}
size={24} size={24}
color={"#52796F"} color={
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white
}
onPress={() => navigation.goBack()} onPress={() => navigation.goBack()}
/> />
) : null ) : null
@ -182,7 +193,13 @@ const Navbar = ({
<Button <Button
icon={ icon={
<Svg xmlns="http://www.w3.org/2000/svg" width={30} height={30}> <Svg xmlns="http://www.w3.org/2000/svg" width={30} height={30}>
<G fill="#52796f"> <G
fill={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white
}
>
<Path <Path
data-name="Path 11446" data-name="Path 11446"
d="M2.131.275A3.177 3.177 0 0 0 .114 2.841 24.849 24.849 0 0 0 .045 5.98l.069 2.177h8.02V.137L5.499.091a18.649 18.649 0 0 0-3.368.184Zm4.973 3.873v2.979H1.146V4.973c0-2.452.229-3.277.962-3.575a13.17 13.17 0 0 1 2.773-.206l2.223-.023Z" d="M2.131.275A3.177 3.177 0 0 0 .114 2.841 24.849 24.849 0 0 0 .045 5.98l.069 2.177h8.02V.137L5.499.091a18.649 18.649 0 0 0-3.368.184Zm4.973 3.873v2.979H1.146V4.973c0-2.452.229-3.277.962-3.575a13.17 13.17 0 0 1 2.773-.206l2.223-.023Z"
@ -364,7 +381,14 @@ const Navbar = ({
width={29.9} width={29.9}
height={30.908} height={30.908}
> >
<G data-name="Group 419" fill="#52796F"> <G
data-name="Group 419"
fill={
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white
}
>
<Path <Path
data-name="Path 1864" data-name="Path 1864"
d="M1.694 1.694h5.081V0H0v6.775h1.694Zm0 0" d="M1.694 1.694h5.081V0H0v6.775h1.694Zm0 0"
@ -400,13 +424,20 @@ const Navbar = ({
) : null} ) : null}
{headerOptions?.bookmark ? ( {headerOptions?.bookmark ? (
bookmarkLoading ? ( bookmarkLoading ? (
<ActivityIndicator size={20} color={Colors.theme1.green79} /> <ActivityIndicator
size={20}
color={
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white
}
/>
) : isActiveBookmark ? ( ) : isActiveBookmark ? (
<Ionicons <Ionicons
name="bookmark" name="bookmark"
style={tw("mr-2")} style={tw("mr-2")}
size={24} size={24}
color={"#52796F"} color={
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white
}
onPress={() => onPress={() =>
headerOptions?.bookmarkItem?.contentId headerOptions?.bookmarkItem?.contentId
? deleteBookmark({ ? deleteBookmark({
@ -430,7 +461,9 @@ const Navbar = ({
name="bookmark-outline" name="bookmark-outline"
style={tw("mr-2")} style={tw("mr-2")}
size={24} size={24}
color={"#52796F"} color={
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white
}
onPress={() => onPress={() =>
headerOptions?.bookmarkItem?.contentId headerOptions?.bookmarkItem?.contentId
? addToBookmark({ ? addToBookmark({

@ -19,14 +19,15 @@ const Search = ({
const styles = StyleSheet.create({ const styles = StyleSheet.create({
inputStyle: { inputStyle: {
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
color: Colors.theme1.gray2077, color: theme === "light" ? Colors.theme1.gray2077 : Colors.theme1.white,
borderWidth: 0.5, borderWidth: 0.5,
borderColor: Colors.theme1.gray20 + "88", borderColor: Colors.theme1.gray20 + "88",
paddingVertical: 10, paddingVertical: 10,
paddingHorizontal: 10, paddingHorizontal: 10,
direction: direction, direction: direction,
textAlign: textAlign, textAlign: textAlign,
backgroundColor: Colors.theme1.white, backgroundColor:
theme === "light" ? Colors.theme1.white : Colors.theme1.gray2077,
fontFamily: "regular", fontFamily: "regular",
}, },
}); });
@ -36,7 +37,11 @@ const Search = ({
style={[styles.inputStyle, tw("rounded-sm")]} style={[styles.inputStyle, tw("rounded-sm")]}
onChangeText={(text) => onChange(text)} onChangeText={(text) => onChange(text)}
placeholder={placeholder} placeholder={placeholder}
placeholderTextColor={Colors.theme1.gray20 + '88'} placeholderTextColor={
theme === "light"
? Colors.theme1.gray20 + "88"
: Colors.theme1.white + "aa"
}
value={value} value={value}
/> />
<Pressable style={tw("absolute left-3 top-3")}> <Pressable style={tw("absolute left-3 top-3")}>

@ -24,7 +24,8 @@ function Select({
borderColor: Colors.theme1.gray2077 + "66", borderColor: Colors.theme1.gray2077 + "66",
borderRadius: 2, borderRadius: 2,
height: 48, height: 48,
backgroundColor: "white", backgroundColor:
theme === "light" ? Colors.theme1.white : Colors.theme1.gray2077,
fontFamily: "regular", fontFamily: "regular",
}} }}
rowTextStyle={{ rowTextStyle={{
@ -38,7 +39,7 @@ function Select({
justifyContent: "flex-end", justifyContent: "flex-end",
flex: 0, flex: 0,
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
color: Colors.theme1.gray2077, color: theme === "light" ? Colors.theme1.gray2077 : Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
// display: 'inline' // display: 'inline'
}} }}
@ -56,7 +57,11 @@ function Select({
<Path <Path
d="m13.347 5.997-4.368 4.369a1.331 1.331 0 0 1-1.876 0L2.734 5.997" d="m13.347 5.997-4.368 4.369a1.331 1.331 0 0 1-1.876 0L2.734 5.997"
fill="none" fill="none"
stroke={Colors.theme1.gray2077 + "66"} stroke={
theme === "light"
? Colors.theme1.gray2077 + "66"
: Colors.theme1.white
}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}

@ -4,7 +4,7 @@ const width = Dimensions.get("window").width;
const initialState = { const initialState = {
ltr: false, ltr: false,
theme: 'light', theme: 'dark',
mobile : width < 720, mobile : width < 720,
homeData: [], homeData: [],
newProducts: [], newProducts: [],

@ -2,7 +2,7 @@ import { Pressable, Text, Image, Dimensions } from "react-native";
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { useNavigation } from "@react-navigation/native"; import { useNavigation } from "@react-navigation/native";
import * as Linking from 'expo-linking'; import * as Linking from "expo-linking";
//style //style
import tw from "tailwind-rn"; import tw from "tailwind-rn";
@ -27,8 +27,8 @@ const Book = ({ book, mobile, theme }) => {
style={[ style={[
tw("rounded-sm w-full"), tw("rounded-sm w-full"),
{ {
height: mobile ? (width - 32) / 2 * 3 / 3.5 : 200, height: mobile ? (((width - 32) / 2) * 3) / 3.5 : 200,
flex : 1, flex: 1,
}, },
]} ]}
/> />
@ -38,7 +38,8 @@ const Book = ({ book, mobile, theme }) => {
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
marginTop: 10, marginTop: 10,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
}, },
]} ]}
> >
@ -50,7 +51,7 @@ const Book = ({ book, mobile, theme }) => {
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({
mobile: state.publicApi.mobile, mobile: state.publicApi.mobile,
theme: state.publicApi.theme theme: state.publicApi.theme,
}); });
export default connect(mapStateToProps)(Book); export default connect(mapStateToProps)(Book);

@ -37,7 +37,6 @@ function AR({ getArList, arList, mobile }) {
style={{ style={{
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
position: "relative", position: "relative",
backgroundColor: "white",
flex: 1, flex: 1,
}} }}
> >
@ -58,7 +57,6 @@ function AR({ getArList, arList, mobile }) {
style={{ style={{
paddingHorizontal: 16, paddingHorizontal: 16,
height: height, height: height,
backgroundColor: "white",
}} }}
contentContainerStyle={{ paddingBottom: 60 }} contentContainerStyle={{ paddingBottom: 60 }}
> >

@ -14,6 +14,7 @@ import { connect } from "react-redux";
import { useNavigation } from "@react-navigation/native"; import { useNavigation } from "@react-navigation/native";
import Svg, { Image as Imagee } from "react-native-svg"; import Svg, { Image as Imagee } from "react-native-svg";
import { activation } from "../../redux/actions"; import { activation } from "../../redux/actions";
import { useSafeAreaInsets } from "react-native-safe-area-context";
//components //components
import TopHeader from "../../components/Header"; import TopHeader from "../../components/Header";
@ -36,6 +37,7 @@ const { height } = Dimensions.get("window");
function Activation({ add, mobile, theme, route }) { function Activation({ add, mobile, theme, route }) {
const [value, setValue] = useState(null); const [value, setValue] = useState(null);
const navigation = useNavigation(); const navigation = useNavigation();
const insets = useSafeAreaInsets();
return ( return (
<SafeAreaView <SafeAreaView
@ -45,7 +47,10 @@ function Activation({ add, mobile, theme, route }) {
]} ]}
> >
<ScrollView style={tw("flex-1")}> <ScrollView style={tw("flex-1")}>
<KeyboardAvoidingView behavior={"padding"} style={{ height }}> <KeyboardAvoidingView
behavior={"padding"}
style={{ height: height - insets.bottom * 2.5 }}
>
<TouchableWithoutFeedback> <TouchableWithoutFeedback>
<View <View
style={[ style={[
@ -91,15 +96,20 @@ function Activation({ add, mobile, theme, route }) {
<View style={tw("w-full flex px-4")}> <View style={tw("w-full flex px-4")}>
<TextInput <TextInput
placeholder="کد فعالسازی" placeholder="کد فعالسازی"
placeholderTextColor="#70707070" placeholderTextColor={"#707070"}
style={[ style={[
tw("w-full mt-4 mb-3 rounded-md text-center py-2"), tw("w-full mt-4 mb-3 rounded-md text-center py-3"),
{ {
backgroundColor: "#F9F9F9", backgroundColor:
borderColor: "#DFDFDF", theme === "light" ? "#F9F9F9" : Colors.theme1.dark,
borderColor: "#DFDFDF" + (theme === "light" ? "" : "aa"),
borderWidth: 1, borderWidth: 1,
fontSize: fontSize.base, fontSize: fontSize.base,
fontFamily: "light", fontFamily: "light",
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
}, },
]} ]}
value={value || route?.params?.data} value={value || route?.params?.data}

@ -51,6 +51,7 @@ const Address = ({
setPhase, setPhase,
cityLoading, cityLoading,
mobile, mobile,
theme
}) => { }) => {
const [addressFields, setAddressFields] = useState({}); const [addressFields, setAddressFields] = useState({});
const [mapAddress, setMapAddress] = useState(null); const [mapAddress, setMapAddress] = useState(null);
@ -226,7 +227,7 @@ const Address = ({
style={{ style={{
fontFamily: "bold", fontFamily: "bold",
fontSize: mobile ? fontSize.lg : fontSize.xl2, fontSize: mobile ? fontSize.lg : fontSize.xl2,
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
}} }}
> >
@ -236,7 +237,7 @@ const Address = ({
style={{ style={{
fontFamily: "regular", fontFamily: "regular",
fontSize: mobile ? fontSize.sm : fontSize.base, fontSize: mobile ? fontSize.sm : fontSize.base,
color: Colors.theme1.gray20 + "aa", color: theme === 'light' ? Colors.theme1.gray20 + 'aa' : Colors.theme1.white + "aa",
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
}} }}
> >
@ -459,7 +460,6 @@ const styles = StyleSheet.create({
paddingBottom: 0, paddingBottom: 0,
}, },
container: { container: {
backgroundColor: "white",
flexDirection: "column", flexDirection: "column",
paddingVertical: 5, paddingVertical: 5,
paddingHorizontal: 16, paddingHorizontal: 16,
@ -477,6 +477,7 @@ const mapStateToProps = (state) => ({
user: state.user.status, user: state.user.status,
profileFields: state.user.profileFields, profileFields: state.user.profileFields,
mobile: state.publicApi.mobile, mobile: state.publicApi.mobile,
theme : state.publicApi.theme
}); });
const mapDispatchToProps = { const mapDispatchToProps = {

@ -162,6 +162,11 @@ export const Blog = ({ getInfo, blog, getList, blogs, route, theme }) => {
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.base, fontSize: fontSize.base,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
marginBottom : 20,
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.grayF9,
}} }}
> >
{blog?.title} {blog?.title}
@ -176,7 +181,17 @@ export const Blog = ({ getInfo, blog, getList, blogs, route, theme }) => {
<HTMLView <HTMLView
value={blog?.text} value={blog?.text}
renderNode={renderNode} renderNode={renderNode}
stylesheet={styles.font} stylesheet={{
p: {
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.grayF9,
textAlign: "right",
fontFamily : 'light',
lineHeight: 25
},
}}
/> />
</View> </View>
</View> </View>
@ -224,7 +239,6 @@ const styles = StyleSheet.create({
paddingBottom: 100, paddingBottom: 100,
}, },
container: { container: {
backgroundColor: "white",
paddingVertical: 0, paddingVertical: 0,
paddingHorizontal: 0, paddingHorizontal: 0,
}, },

@ -104,7 +104,6 @@ const styles = StyleSheet.create({
paddingBottom: 100, paddingBottom: 100,
}, },
container: { container: {
backgroundColor: "white",
paddingVertical: 0, paddingVertical: 0,
paddingHorizontal: 0, paddingHorizontal: 0,
}, },

@ -15,7 +15,7 @@ export const Hashtags = ({ hashtags, theme }) => {
tw( tw(
"flex flex-row-reverse py-1 pl-3 rounded-full items-center w-full mb-7" "flex flex-row-reverse py-1 pl-3 rounded-full items-center w-full mb-7"
), ),
{borderWidth : 2, borderColor : Colors.theme1.greenFF1} {borderWidth : 2, borderColor : Colors.theme1.greenFF1 + (theme === 'light' ? "" : "55")}
]} ]}
> >
<Svg xmlns="http://www.w3.org/2000/svg" width={31.486} height={19.692}> <Svg xmlns="http://www.w3.org/2000/svg" width={31.486} height={19.692}>

@ -15,15 +15,15 @@ export const Header = ({ title, theme }) => {
tw("py-2.5 pr-2.5 pl-5"), tw("py-2.5 pr-2.5 pl-5"),
{ {
fontSize: fontSize.base, fontSize: fontSize.base,
color: Colors.theme1.white, color: theme === "light" ? Colors.theme1.white : Colors.theme1.black,
backgroundColor: Colors.theme1.black, backgroundColor: theme === 'light' ? Colors.theme1.black : Colors.theme1.white + 'dd',
fontFamily : 'bold' fontFamily : 'bold'
}, },
]} ]}
> >
{title} {title}
</Text> </Text>
<View style={{ width : '100%', backgroundColor : Colors.theme1.grayE3, height : 2 }}></View> <View style={{ width : '100%', backgroundColor : Colors.theme1.grayE3 + (theme === "light" ? "" : "55"), height : 2 }}></View>
</View> </View>
); );
}; };

@ -35,7 +35,7 @@ export const New = ({ blog, theme }) => {
style={{ style={{
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.gray20, color: theme === "light" ? Colors.theme1.gray20 : Colors.theme1.grayF9,
marginTop: 5, marginTop: 5,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
}} }}
@ -46,7 +46,8 @@ export const New = ({ blog, theme }) => {
style={{ style={{
fontSize: fontSize.xs, fontSize: fontSize.xs,
fontFamily: "regular", fontFamily: "regular",
color: Colors.theme1.gray2077, color:
theme === "light" ? Colors.theme1.gray2077 : Colors.theme1.grayF9,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
marginTop: 5, marginTop: 5,
}} }}

@ -109,7 +109,8 @@ export const Single = ({ blog, theme }) => {
style={{ style={{
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.lg, fontSize: fontSize.lg,
color: Colors.theme1.gray20, color:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.grayF9,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
}} }}
> >
@ -119,7 +120,10 @@ export const Single = ({ blog, theme }) => {
style={{ style={{
fontFamily: "regular", fontFamily: "regular",
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.gray2077, color:
theme === "light"
? Colors.theme1.gray2077
: Colors.theme1.grayF9,
lineHeight: 25, lineHeight: 25,
marginTop: 10, marginTop: 10,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
@ -138,7 +142,7 @@ export const Single = ({ blog, theme }) => {
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({
blog: state.blog.list[0], blog: state.blog.list[0],
theme: state.publicApi.theme theme: state.publicApi.theme,
}); });
const mapDispatchToProps = {}; const mapDispatchToProps = {};

@ -53,6 +53,8 @@ const Target = ({ blogs, theme }) => {
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.lg, fontSize: fontSize.lg,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
color:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.grayF9,
}, },
]} ]}
> >
@ -73,7 +75,10 @@ const Target = ({ blogs, theme }) => {
style={[ style={[
{ {
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.grayF9,
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
}, },
]} ]}
@ -84,7 +89,10 @@ const Target = ({ blogs, theme }) => {
style={[ style={[
{ {
fontFamily: "regular", fontFamily: "regular",
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.grayF9,
fontSize: fontSize.xs, fontSize: fontSize.xs,
}, },
]} ]}
@ -98,7 +106,10 @@ const Target = ({ blogs, theme }) => {
style={[ style={[
{ {
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.grayF9,
fontSize: fontSize.sm, fontSize: fontSize.sm,
}, },
]} ]}
@ -110,7 +121,10 @@ const Target = ({ blogs, theme }) => {
tw("mt-0"), tw("mt-0"),
{ {
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.grayF9,
fontSize: fontSize.sm, fontSize: fontSize.sm,
}, },
]} ]}
@ -145,6 +159,10 @@ const Target = ({ blogs, theme }) => {
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.sm, fontSize: fontSize.sm,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.grayF9,
}, },
]} ]}
> >

@ -33,7 +33,6 @@ function Contact({ info, theme }) {
style={{ style={{
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
position: "relative", position: "relative",
backgroundColor: "white",
}} }}
> >
<Navbar <Navbar
@ -53,7 +52,7 @@ function Contact({ info, theme }) {
title={"ارتباط با ما"} title={"ارتباط با ما"}
description={"تیم پشتیبانی ما اینجاست تا شما رو کمک کنه"} description={"تیم پشتیبانی ما اینجاست تا شما رو کمک کنه"}
/> />
<ScrollView style={[tw("bg-white flex pb-20 px-4 mb-4")]}> <ScrollView style={[tw("flex pb-20 px-4 mb-4")]}>
{Object.keys(info).map((item, index) => ( {Object.keys(info).map((item, index) => (
<Box info={info[item]} key={index} /> <Box info={info[item]} key={index} />
))} ))}

@ -77,7 +77,6 @@ export const Ticket = ({
style={{ style={{
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
position: "relative", position: "relative",
backgroundColor: "white",
flex: 1, flex: 1,
}} }}
> >

@ -26,7 +26,6 @@ export const Tickets = ({ tickets = [], theme }) => {
style={{ style={{
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
position: "relative", position: "relative",
backgroundColor: "white",
flex: 1, flex: 1,
}} }}
> >

@ -14,10 +14,12 @@ function Instance({ question, selectFaq, mobile, theme }) {
tw(`w-full flex my-1.5 rounded-sm px-4 ${mobile ? "py-2" : "py-3"}`), tw(`w-full flex my-1.5 rounded-sm px-4 ${mobile ? "py-2" : "py-3"}`),
{ {
backgroundColor: !question.active backgroundColor: !question.active
? "#F9F9F9" ? theme === "light"
? "#F9F9F9"
: null
: Colors.theme1.greenCF + "0a", : Colors.theme1.greenCF + "0a",
borderColor: !question.active borderColor: !question.active
? "#DBDBDB" ? "#DBDBDB" + (theme === "light" ? "" : "88")
: Colors.theme1.greenCF, : Colors.theme1.greenCF,
borderWidth: 1.5, borderWidth: 1.5,
}, },
@ -29,7 +31,10 @@ function Instance({ question, selectFaq, mobile, theme }) {
{ {
width: "90%", width: "90%",
textAlign: "right", textAlign: "right",
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.grayF9,
fontSize: mobile ? fontSize.tiny : fontSize.lg, fontSize: mobile ? fontSize.tiny : fontSize.lg,
fontFamily: "bold", fontFamily: "bold",
}, },
@ -38,9 +43,21 @@ function Instance({ question, selectFaq, mobile, theme }) {
{question.title} {question.title}
</Text> </Text>
{question.active ? ( {question.active ? (
<Entypo name="minus" size={18} color={Colors.theme1.green79} /> <Entypo
name="minus"
size={18}
color={
theme === "light" ? Colors.theme1.green79 : Colors.theme1.grayF9
}
/>
) : ( ) : (
<Entypo name="plus" size={18} color={Colors.theme1.green79} /> <Entypo
name="plus"
size={18}
color={
theme === "light" ? Colors.theme1.green79 : Colors.theme1.grayF9
}
/>
)} )}
</View> </View>
{question.active ? ( {question.active ? (
@ -48,7 +65,10 @@ function Instance({ question, selectFaq, mobile, theme }) {
<Text <Text
style={[ style={[
{ {
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.grayF9,
fontSize: mobile ? fontSize.tiny : fontSize.lg, fontSize: mobile ? fontSize.tiny : fontSize.lg,
fontFamily: "light", fontFamily: "light",
}, },

@ -39,7 +39,6 @@ function Faq({ list, getFaq, searchResult, search, selectFaq, searchFaq, theme }
style={{ style={{
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
position: "relative", position: "relative",
backgroundColor: "white",
}} }}
> >
<Navbar <Navbar
@ -71,7 +70,7 @@ function Faq({ list, getFaq, searchResult, search, selectFaq, searchFaq, theme }
searchResult?.length ? ( searchResult?.length ? (
<FlatList <FlatList
contentContainerStyle={{ paddingBottom: height / 2 }} contentContainerStyle={{ paddingBottom: height / 2 }}
style={[tw("bg-white flex px-4 mb-4")]} style={[tw("flex px-4 mb-4")]}
data={searchResult} data={searchResult}
keyExtractor={(item, index) => { keyExtractor={(item, index) => {
return index; return index;
@ -94,7 +93,7 @@ function Faq({ list, getFaq, searchResult, search, selectFaq, searchFaq, theme }
) : ( ) : (
<FlatList <FlatList
contentContainerStyle={{ paddingBottom: height / 2 }} contentContainerStyle={{ paddingBottom: height / 2 }}
style={[tw("bg-white flex px-4 mb-4")]} style={[tw("flex px-4 mb-4")]}
data={list} data={list}
keyExtractor={(item, index) => { keyExtractor={(item, index) => {
return index; return index;

@ -72,7 +72,7 @@ const Blog = ({ blog, mobile, theme }) => {
<View <View
style={[ style={[
{ transform: [{ translateY: -40 }], marginHorizontal: 10 }, { transform: [{ translateY: -40 }], marginHorizontal: 10 },
tw("flex justify-between bg-white rounded-md p-2"), tw("flex justify-between bg-white rounded-md p-2"),
{ {
shadowColor: "#00000055", shadowColor: "#00000055",
shadowOffset: { width: 0, height: 1 }, shadowOffset: { width: 0, height: 1 },
@ -80,6 +80,7 @@ const Blog = ({ blog, mobile, theme }) => {
shadowRadius: 2, shadowRadius: 2,
elevation: 5, elevation: 5,
height: 85, height: 85,
backgroundColor : theme === 'light' ? Colors.theme1.white : Colors.theme1.green79
}, },
]} ]}
> >
@ -87,7 +88,7 @@ const Blog = ({ blog, mobile, theme }) => {
style={[ style={[
tw("mb-1"), tw("mb-1"),
{ {
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
@ -108,7 +109,7 @@ const Blog = ({ blog, mobile, theme }) => {
<Text <Text
style={[ style={[
{ {
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
fontSize: mobile ? fontSize.xs : fontSize.base, fontSize: mobile ? fontSize.xs : fontSize.base,
}, },
@ -122,7 +123,7 @@ const Blog = ({ blog, mobile, theme }) => {
style={[ style={[
tw("ml-1"), tw("ml-1"),
{ {
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
fontSize: mobile ? fontSize.xs : fontSize.base, fontSize: mobile ? fontSize.xs : fontSize.base,
}, },

@ -21,7 +21,7 @@ const Header = ({ title, route, mobile, theme, state = null }) => {
<Text <Text
style={[ style={[
{ {
color: Colors.theme1.green79, color: theme === 'light' ? Colors.theme1.green79 : Colors.theme1.white,
fontFamily: "demi", fontFamily: "demi",
fontSize: mobile ? fontSize.lg : fontSize.xl2, fontSize: mobile ? fontSize.lg : fontSize.xl2,
}, },
@ -37,7 +37,7 @@ const Header = ({ title, route, mobile, theme, state = null }) => {
<Entypo <Entypo
name="chevron-small-left" name="chevron-small-left"
size={fontSize.xl6} size={fontSize.xl6}
color={Colors.theme1.green79} color={theme === 'light' ? Colors.theme1.green79 : Colors.theme1.white}
/> />
</Pressable> </Pressable>
) : null} ) : null}

@ -18,8 +18,8 @@ function MyBooks({ books, grades, theme }) {
style={[ style={[
tw(`w-full flex rounded-md pt-3 overflow-hidden`), tw(`w-full flex rounded-md pt-3 overflow-hidden`),
{ {
backgroundColor: Colors.theme1.greenCF + "0F", backgroundColor: theme === 'light' ? Colors.theme1.greenCF + "0F" : Colors.theme1.greenCF + '11',
borderColor: Colors.theme1.greenD9 + "", borderColor: Colors.theme1.greenD9 + (theme === 'light' ? "" : "77"),
borderWidth: 1, borderWidth: 1,
}, },
]} ]}
@ -28,7 +28,8 @@ function MyBooks({ books, grades, theme }) {
style={[ style={[
tw(`pr-4 ${ios ? "text-right" : ""} w-full`), tw(`pr-4 ${ios ? "text-right" : ""} w-full`),
{ {
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
fontFamily: "demi", fontFamily: "demi",
fontSize: fontSize.lg, fontSize: fontSize.lg,
}, },
@ -77,7 +78,8 @@ const Book = ({ book, grades, theme }) => {
style={[ style={[
tw("mt-2 pr-1"), tw("mt-2 pr-1"),
{ {
color: Colors.theme1.gray20, color:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.sm, fontSize: fontSize.sm,
}, },
@ -89,7 +91,8 @@ const Book = ({ book, grades, theme }) => {
style={[ style={[
tw("pr-1"), tw("pr-1"),
{ {
color: Colors.theme1.gray20, color:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "light", fontFamily: "light",
fontSize: fontSize.sm, fontSize: fontSize.sm,
}, },

@ -60,7 +60,7 @@ const Video = ({ video, mobile, grades, theme }) => {
style={[ style={[
tw("mt-2 px-1"), tw("mt-2 px-1"),
{ {
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
fontSize: mobile ? fontSize.sm : fontSize.xl, fontSize: mobile ? fontSize.sm : fontSize.xl,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
@ -73,7 +73,7 @@ const Video = ({ video, mobile, grades, theme }) => {
style={[ style={[
tw("mt-1 pr-1"), tw("mt-1 pr-1"),
{ {
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
fontSize: mobile ? fontSize.xs : fontSize.base, fontSize: mobile ? fontSize.xs : fontSize.base,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",

@ -59,7 +59,7 @@ function Login(props) {
<ScrollView style={[tw("flex-1")]}> <ScrollView style={[tw("flex-1")]}>
<KeyboardAvoidingView <KeyboardAvoidingView
style={[ style={[
tw(`flex justify-center items-center bg-white px-4 relative`), tw(`flex justify-center items-center px-4 relative`),
{ minHeight: height }, { minHeight: height },
]} ]}
behavior={ios ? "padding" : "padding"} behavior={ios ? "padding" : "padding"}
@ -98,7 +98,10 @@ function Login(props) {
{ {
fontSize: fontSize.xl2, fontSize: fontSize.xl2,
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.black, color:
props.theme === "light"
? Colors.theme1.black
: Colors.theme1.white,
}, },
]} ]}
> >
@ -114,7 +117,10 @@ function Login(props) {
{ {
fontSize: fontSize.xl2, fontSize: fontSize.xl2,
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.black, color:
props.theme === "light"
? Colors.theme1.black
: Colors.theme1.white,
}, },
]} ]}
> >
@ -175,8 +181,15 @@ function Login(props) {
</TouchableHighlight> </TouchableHighlight>
<Text <Text
style={[ style={[
tw("flex absolute bottom-6 text-center w-7/12"), tw("flex absolute bottom-8 text-center w-7/12"),
{ fontFamily: "regular", fontSize: fontSize.sm }, {
fontFamily: "regular",
fontSize: fontSize.sm,
color:
props.theme === "light"
? Colors.theme1.black
: Colors.theme1.white,
},
]} ]}
> >
ورود شما در سامانه به منزله قبول و{" "} ورود شما در سامانه به منزله قبول و{" "}

@ -15,13 +15,13 @@ function Book({ book, mobile, grades, theme }) {
tw("w-full flex flex-row-reverse justify-between py-3"), tw("w-full flex flex-row-reverse justify-between py-3"),
{ {
borderBottomWidth: 1, borderBottomWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor: Colors.theme1.grayE3 + (theme === "light" ? "" : "55"),
}, },
]} ]}
> >
<View style={tw("flex flex-row-reverse items-center flex-1")}> <View style={tw("flex flex-row-reverse items-center flex-1")}>
<Image <Image
resizeMode="contain" resizeMode="contain"
source={{ source={{
uri: `https://dnvn.ir/api/v1/file/${book.product.book.fileIds}`, uri: `https://dnvn.ir/api/v1/file/${book.product.book.fileIds}`,
}} }}
@ -38,7 +38,10 @@ function Book({ book, mobile, grades, theme }) {
style={[ style={[
{ {
fontSize: mobile ? fontSize.base : fontSize.xl2, fontSize: mobile ? fontSize.base : fontSize.xl2,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -50,7 +53,10 @@ function Book({ book, mobile, grades, theme }) {
tw(" mt-2"), tw(" mt-2"),
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.gray20 + "aa", color:
theme === "light"
? Colors.theme1.green79 + "aa"
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
]} ]}
@ -76,9 +82,11 @@ function Book({ book, mobile, grades, theme }) {
style={[ style={[
tw(" py-1 px-3 rounded-sm"), tw(" py-1 px-3 rounded-sm"),
{ {
color: "#132F52", color: theme === "light" ? "#132F52" : Colors.theme1.white,
fontSize: mobile ? fontSize.xl : fontSize.xl4, fontSize: mobile ? fontSize.xl : fontSize.xl4,
backgroundColor: "#F1F1F1", backgroundColor: theme === "light" ? "#F1F1F1" : null,
borderWidth: theme === "light" ? 0 : 1,
borderColor: "#f1f1f1",
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -90,7 +98,8 @@ function Book({ book, mobile, grades, theme }) {
style={{ style={{
fontFamily: "bold", fontFamily: "bold",
fontSize: mobile ? fontSize.sm : fontSize.xl2, fontSize: mobile ? fontSize.sm : fontSize.xl2,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
}} }}
> >
تومان تومان
@ -99,7 +108,10 @@ function Book({ book, mobile, grades, theme }) {
style={[ style={[
tw(" mr-3"), tw(" mr-3"),
{ {
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: fontSize.xl, fontSize: fontSize.xl,
fontFamily: "bold", fontFamily: "bold",
}, },
@ -116,7 +128,7 @@ function Book({ book, mobile, grades, theme }) {
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({
mobile: state.publicApi.mobile, mobile: state.publicApi.mobile,
grades: state.publicApi.grades, grades: state.publicApi.grades,
theme: state.publicApi.theme theme: state.publicApi.theme,
}); });
export default connect(mapStateToProps)(Book); export default connect(mapStateToProps)(Book);

@ -43,7 +43,6 @@ const status = {
}; };
function OrderDetails({ mobile, route, theme }) { function OrderDetails({ mobile, route, theme }) {
const { order } = route.params; const { order } = route.params;
const [position, setPosition] = useState("100%"); const [position, setPosition] = useState("100%");
@ -85,11 +84,18 @@ function OrderDetails({ mobile, route, theme }) {
{ backgroundColor: Colors.theme1.greenCF + "1a" }, { backgroundColor: Colors.theme1.greenCF + "1a" },
]} ]}
> >
<View style={tw("flex flex-row-reverse items-center")}> <View
style={tw(
"w-full flex flex-row-reverse justify-between items-center"
)}
>
<Text <Text
style={[ style={[
{ {
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: mobile fontSize: mobile
? mobile ? mobile
? fontSize.sm ? fontSize.sm
@ -114,7 +120,8 @@ function OrderDetails({ mobile, route, theme }) {
tw("w-full flex flex-row-reverse items-center py-4"), tw("w-full flex flex-row-reverse items-center py-4"),
{ {
borderBottomWidth: 1, borderBottomWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor:
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"),
}, },
]} ]}
> >
@ -122,7 +129,11 @@ function OrderDetails({ mobile, route, theme }) {
style={[ style={[
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -135,7 +146,11 @@ function OrderDetails({ mobile, route, theme }) {
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
lineHeight: mobile ? 17 : "auto", lineHeight: mobile ? 17 : "auto",
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
]} ]}
@ -148,7 +163,8 @@ function OrderDetails({ mobile, route, theme }) {
tw("w-full flex flex-row-reverse justify-between py-4"), tw("w-full flex flex-row-reverse justify-between py-4"),
{ {
borderBottomWidth: 1, borderBottomWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor:
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"),
}, },
]} ]}
> >
@ -157,7 +173,11 @@ function OrderDetails({ mobile, route, theme }) {
style={[ style={[
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -170,7 +190,11 @@ function OrderDetails({ mobile, route, theme }) {
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
lineHeight: mobile ? 17 : "auto", lineHeight: mobile ? 17 : "auto",
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
]} ]}
@ -183,7 +207,11 @@ function OrderDetails({ mobile, route, theme }) {
style={[ style={[
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -196,7 +224,11 @@ function OrderDetails({ mobile, route, theme }) {
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
lineHeight: mobile ? 17 : "auto", lineHeight: mobile ? 17 : "auto",
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
]} ]}
@ -207,8 +239,13 @@ function OrderDetails({ mobile, route, theme }) {
</View> </View>
<View <View
style={[ style={[
tw("w-full rounded-md flex p-4 items-end mt-2"), tw("w-full rounded-md flex p-4 items-end mt-7 mb-4"),
{ backgroundColor: Colors.theme1.greenFF1 + "aa" }, {
backgroundColor:
theme === "light" ? Colors.theme1.greenFF1 + "aa" : null,
borderWidth: theme === "light" ? 0 : 1,
borderColor : Colors.theme1.greenFF1
},
]} ]}
> >
<Text <Text
@ -219,7 +256,11 @@ function OrderDetails({ mobile, route, theme }) {
? fontSize.sm ? fontSize.sm
: fontSize.lg : fontSize.lg
: fontSize.lg, : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -235,7 +276,11 @@ function OrderDetails({ mobile, route, theme }) {
? fontSize.sm ? fontSize.sm
: fontSize.lg : fontSize.lg
: fontSize.lg, : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
]} ]}
@ -254,7 +299,11 @@ function OrderDetails({ mobile, route, theme }) {
style={[ style={[
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -266,7 +315,11 @@ function OrderDetails({ mobile, route, theme }) {
tw("font-light text-right mr-1"), tw("font-light text-right mr-1"),
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
]} ]}
@ -280,7 +333,8 @@ function OrderDetails({ mobile, route, theme }) {
tw("w-full flex flex-row-reverse justify-between py-4"), tw("w-full flex flex-row-reverse justify-between py-4"),
{ {
borderBottomWidth: 1, borderBottomWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor:
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"),
}, },
]} ]}
> >
@ -289,7 +343,11 @@ function OrderDetails({ mobile, route, theme }) {
style={[ style={[
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -301,7 +359,11 @@ function OrderDetails({ mobile, route, theme }) {
tw("font-light text-right mr-1"), tw("font-light text-right mr-1"),
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
]} ]}
@ -314,7 +376,11 @@ function OrderDetails({ mobile, route, theme }) {
style={[ style={[
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -326,7 +392,11 @@ function OrderDetails({ mobile, route, theme }) {
tw("font-light text-right mr-1"), tw("font-light text-right mr-1"),
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
]} ]}
@ -340,17 +410,21 @@ function OrderDetails({ mobile, route, theme }) {
tw("w-full flex flex-row-reverse justify-between py-4"), tw("w-full flex flex-row-reverse justify-between py-4"),
{ {
borderBottomWidth: 1, borderBottomWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor:
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"),
}, },
]} ]}
> >
<View style={tw("flex flex-row-reverse items-center")}> <View style={tw("flex flex-row-reverse items-center")}>
<Text <Text
style={[ style={[
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -362,7 +436,11 @@ function OrderDetails({ mobile, route, theme }) {
tw("font-light text-right mr-1"), tw("font-light text-right mr-1"),
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
]} ]}
@ -377,7 +455,11 @@ function OrderDetails({ mobile, route, theme }) {
style={[ style={[
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -389,7 +471,11 @@ function OrderDetails({ mobile, route, theme }) {
tw("font-light text-right mr-1"), tw("font-light text-right mr-1"),
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
]} ]}
@ -409,7 +495,6 @@ const styles = StyleSheet.create({
alignItems: "flex-end", alignItems: "flex-end",
}, },
container: { container: {
backgroundColor: "white",
flexDirection: "column", flexDirection: "column",
paddingVertical: 0, paddingVertical: 0,
paddingHorizontal: 16, paddingHorizontal: 16,
@ -418,7 +503,7 @@ const styles = StyleSheet.create({
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({
mobile: state.publicApi.mobile, mobile: state.publicApi.mobile,
theme: state.publicApi.theme theme: state.publicApi.theme,
}); });
export default connect(mapStateToProps)(OrderDetails); export default connect(mapStateToProps)(OrderDetails);

@ -61,7 +61,8 @@ function Order({ order, mobile, theme }) {
tw("font-medium"), tw("font-medium"),
{ {
fontSize: mobile ? fontSize.base : fontSize.xl, fontSize: mobile ? fontSize.base : fontSize.xl,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
fontFamily: mobile ? "regular" : "demi", fontFamily: mobile ? "regular" : "demi",
}, },
]} ]}
@ -73,7 +74,10 @@ function Order({ order, mobile, theme }) {
style={[ style={[
tw("font-light"), tw("font-light"),
{ {
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
fontFamily: mobile ? "bold" : "demi", fontFamily: mobile ? "bold" : "demi",
}, },
@ -111,12 +115,14 @@ function Order({ order, mobile, theme }) {
<View style={[tw("")]}> <View style={[tw("")]}>
<Text <Text
style={[ style={[
tw("p-2 rounded-md text-center"), tw("py-2 rounded-md"),
{ {
textAlign: theme === "light" ? "center" : "right",
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
fontFamily: "bold", fontFamily: "bold",
backgroundColor: "#F0FFF1", backgroundColor: theme === "light" ? "#F0FFF1" : null,
color: Colors.theme1.green79, color: theme === "light" ? Colors.theme1.green79 : "#F0FFF1",
paddingHorizontal: theme === "light" ? 8 : 0,
}, },
]} ]}
> >
@ -130,7 +136,10 @@ function Order({ order, mobile, theme }) {
tw("my-3"), tw("my-3"),
{ {
fontSize: mobile ? fontSize.tiny : fontSize.xl, fontSize: mobile ? fontSize.tiny : fontSize.xl,
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -180,7 +189,10 @@ function Order({ order, mobile, theme }) {
tw("my-5"), tw("my-5"),
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "light", fontFamily: "light",
}, },
]} ]}
@ -197,7 +209,7 @@ function Order({ order, mobile, theme }) {
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({
mobile: state.publicApi.mobile, mobile: state.publicApi.mobile,
theme: state.publicApi.theme theme: state.publicApi.theme,
}); });
export default connect(mapStateToProps)(Order); export default connect(mapStateToProps)(Order);

@ -72,7 +72,6 @@ const styles = StyleSheet.create({
alignItems: "flex-end", alignItems: "flex-end",
}, },
container: { container: {
backgroundColor: "white",
flexDirection: "column", flexDirection: "column",
paddingVertical: 0, paddingVertical: 0,
paddingHorizontal: 16, paddingHorizontal: 16,

@ -139,7 +139,11 @@ function Otp(props) {
" " + " " +
":" + ":" +
" " + " " +
(hour > 0 ? hour.toString().length === 1 ? "0" + hour.toString() : hour : "00") (hour > 0
? hour.toString().length === 1
? "0" + hour.toString()
: hour
: "00")
); );
}, },
[props.route] [props.route]
@ -171,7 +175,7 @@ function Otp(props) {
<ScrollView style={tw("flex-1")}> <ScrollView style={tw("flex-1")}>
<KeyboardAvoidingView <KeyboardAvoidingView
style={[ style={[
tw("px-4 flex-1 justify-center items-center bg-white"), tw("px-4 flex-1 justify-center items-center"),
{ minHeight: height }, { minHeight: height },
]} ]}
behavior={"padding"} behavior={"padding"}
@ -210,7 +214,10 @@ function Otp(props) {
{ {
fontSize: props.mobile ? fontSize.tiny : fontSize.base, fontSize: props.mobile ? fontSize.tiny : fontSize.base,
fontFamily: "light", fontFamily: "light",
color: Colors.theme1.gray20, color:
props.theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
}, },
]} ]}
> >
@ -234,12 +241,16 @@ function Otp(props) {
> >
<TextInput <TextInput
style={[ style={[
tw("bg-gray-100 py-3 px-5 text-center rounded-md mx-1.5"), tw("py-3 px-5 text-center rounded-md mx-1.5"),
{ {
fontSize: fontSize.xl5, fontSize: fontSize.xl5,
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.green79, color: props.theme === 'light' ? Colors.theme1.green79 : Colors.theme1.white,
width: fontSize.xl5 + 40, width: fontSize.xl5 + 40,
backgroundColor:
props.theme === "light" ? Colors.theme1.grayE3 : null,
borderWidth : props.theme === "light" ? 0 : 1,
borderColor : Colors.theme1.grayE3 + 'aa'
}, },
]} ]}
underlineColorAndroid={"transparent"} underlineColorAndroid={"transparent"}
@ -253,12 +264,16 @@ function Otp(props) {
/> />
<TextInput <TextInput
style={[ style={[
tw("bg-gray-100 py-3 px-5 text-center rounded-md mx-1.5"), tw("py-3 px-5 text-center rounded-md mx-1.5"),
{ {
fontSize: fontSize.xl5, fontSize: fontSize.xl5,
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.green79, color: props.theme === 'light' ? Colors.theme1.green79 : Colors.theme1.white,
width: fontSize.xl5 + 40, width: fontSize.xl5 + 40,
backgroundColor:
props.theme === "light" ? Colors.theme1.grayE3 : null,
borderWidth : props.theme === "light" ? 0 : 1,
borderColor : Colors.theme1.grayE3 + 'aa'
}, },
]} ]}
underlineColorAndroid={"transparent"} underlineColorAndroid={"transparent"}
@ -272,12 +287,16 @@ function Otp(props) {
/> />
<TextInput <TextInput
style={[ style={[
tw("bg-gray-100 py-3 px-5 text-center rounded-md mx-1.5"), tw("py-3 px-5 text-center rounded-md mx-1.5"),
{ {
fontSize: fontSize.xl5, fontSize: fontSize.xl5,
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.green79, color: props.theme === 'light' ? Colors.theme1.green79 : Colors.theme1.white,
width: fontSize.xl5 + 40, width: fontSize.xl5 + 40,
backgroundColor:
props.theme === "light" ? Colors.theme1.grayE3 : null,
borderWidth : props.theme === "light" ? 0 : 1,
borderColor : Colors.theme1.grayE3 + 'aa'
}, },
]} ]}
underlineColorAndroid={"transparent"} underlineColorAndroid={"transparent"}
@ -291,12 +310,16 @@ function Otp(props) {
/> />
<TextInput <TextInput
style={[ style={[
tw("bg-gray-100 py-3 px-5 text-center rounded-md mx-1.5"), tw("py-3 px-5 text-center rounded-md mx-1.5"),
{ {
fontSize: fontSize.xl5, fontSize: fontSize.xl5,
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.green79, color: props.theme === 'light' ? Colors.theme1.green79 : Colors.theme1.white,
width: fontSize.xl5 + 40, width: fontSize.xl5 + 40,
backgroundColor:
props.theme === "light" ? Colors.theme1.grayE3 : null,
borderWidth : props.theme === "light" ? 0 : 1,
borderColor : Colors.theme1.grayE3 + 'aa'
}, },
]} ]}
underlineColorAndroid={"transparent"} underlineColorAndroid={"transparent"}
@ -345,7 +368,10 @@ function Otp(props) {
{ {
fontFamily: "light", fontFamily: "light",
fontSize: fontSize.base, fontSize: fontSize.base,
color: Colors.theme1.gray20, color:
props.theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
}, },
]} ]}
> >

@ -151,7 +151,10 @@ function Book({
<View style={tw("flex items-end")}> <View style={tw("flex items-end")}>
<Text <Text
style={{ style={{
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: mobile ? fontSize.base : fontSize.xl3, fontSize: mobile ? fontSize.base : fontSize.xl3,
marginBottom: 5, marginBottom: 5,
fontFamily: "bold", fontFamily: "bold",
@ -162,7 +165,10 @@ function Book({
</Text> </Text>
<Text <Text
style={{ style={{
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: mobile ? fontSize.tiny : fontSize.xl, fontSize: mobile ? fontSize.tiny : fontSize.xl,
fontFamily: "regular", fontFamily: "regular",
}} }}
@ -186,7 +192,8 @@ function Book({
<View> <View>
<Text <Text
style={{ style={{
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
textAlign: "center", textAlign: "center",
fontSize: mobile ? fontSize.tiny : fontSize.lg, fontSize: mobile ? fontSize.tiny : fontSize.lg,
fontFamily: "regular", fontFamily: "regular",
@ -206,7 +213,8 @@ function Book({
<View> <View>
<Text <Text
style={{ style={{
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
textAlign: "center", textAlign: "center",
fontSize: mobile ? fontSize.tiny : fontSize.lg, fontSize: mobile ? fontSize.tiny : fontSize.lg,
fontFamily: "regular", fontFamily: "regular",
@ -226,7 +234,8 @@ function Book({
<View> <View>
<Text <Text
style={{ style={{
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
textAlign: "center", textAlign: "center",
fontSize: mobile ? fontSize.tiny : fontSize.lg, fontSize: mobile ? fontSize.tiny : fontSize.lg,
fontFamily: "regular", fontFamily: "regular",
@ -242,7 +251,9 @@ function Book({
style={[ style={[
tw("w-full text-right"), tw("w-full text-right"),
{ {
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
fontSize: mobile ? fontSize.tiny : fontSize.lg, fontSize: mobile ? fontSize.tiny : fontSize.lg,
fontFamily: "demi", fontFamily: "demi",
}, },
@ -260,7 +271,7 @@ function Book({
{ {
borderWidth: 1, borderWidth: 1,
borderColor: Colors.theme1.greenCF, borderColor: Colors.theme1.greenCF,
backgroundColor: Colors.theme1.greenFF + "0a", backgroundColor: theme === 'light' ? Colors.theme1.greenFF + "0a" : null,
}, },
]} ]}
onPress={() => onPress={() =>
@ -290,7 +301,11 @@ function Book({
style={{ style={{
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF,
paddingVertical: 4, paddingVertical: 4,
}} }}
> >
@ -304,7 +319,11 @@ function Book({
tw("py-1 pr-2"), tw("py-1 pr-2"),
{ {
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF,
fontSize: fontSize.sm, fontSize: fontSize.sm,
}, },
]} ]}
@ -321,8 +340,8 @@ function Book({
tw("flex flex-row-reverse justify-between px-2 py-3 mb-4"), tw("flex flex-row-reverse justify-between px-2 py-3 mb-4"),
{ {
borderWidth: 1, borderWidth: 1,
borderColor: Colors.theme1.greenCF, borderColor: Colors.theme1.greenCF,
backgroundColor: Colors.theme1.greenFF + "0a", backgroundColor: theme === 'light' ? Colors.theme1.greenFF + "0a" : null,
width: width - 32 - 8 - (fontSize.sm * 6 + 18), width: width - 32 - 8 - (fontSize.sm * 6 + 18),
}, },
]} ]}
@ -353,7 +372,11 @@ function Book({
style={{ style={{
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF,
paddingVertical: 4, paddingVertical: 4,
}} }}
> >
@ -367,7 +390,11 @@ function Book({
borderRightWidth: 1, borderRightWidth: 1,
borderColor: Colors.theme1.greenCF, borderColor: Colors.theme1.greenCF,
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF,
fontSize: fontSize.sm, fontSize: fontSize.sm,
}, },
]} ]}
@ -384,7 +411,7 @@ function Book({
{ {
borderWidth: 1, borderWidth: 1,
borderColor: Colors.theme1.greenCF, borderColor: Colors.theme1.greenCF,
backgroundColor: Colors.theme1.greenFF + "0a", backgroundColor: theme === 'light' ? Colors.theme1.greenFF + "0a" : null,
width: fontSize.sm * 6 + 18, width: fontSize.sm * 6 + 18,
}, },
]} ]}
@ -394,7 +421,9 @@ function Book({
style={{ style={{
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.xs, fontSize: fontSize.xs,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.greenCF,
paddingVertical: 4, paddingVertical: 4,
}} }}
> >
@ -408,7 +437,7 @@ function Book({
{ {
borderWidth: 1, borderWidth: 1,
borderColor: Colors.theme1.greenCF, borderColor: Colors.theme1.greenCF,
backgroundColor: Colors.theme1.greenFF + "0a", backgroundColor: theme === 'light' ? Colors.theme1.greenFF + "0a" : null,
width: width - 32 - 8 - (fontSize.sm * 6 + 18), width: width - 32 - 8 - (fontSize.sm * 6 + 18),
}, },
]} ]}
@ -439,7 +468,11 @@ function Book({
style={{ style={{
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF,
paddingVertical: 4, paddingVertical: 4,
}} }}
> >
@ -452,7 +485,11 @@ function Book({
tw("py-1 pr-2"), tw("py-1 pr-2"),
{ {
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenCF,
fontSize: fontSize.sm, fontSize: fontSize.sm,
}, },
]} ]}
@ -469,7 +506,7 @@ function Book({
{ {
borderWidth: 1, borderWidth: 1,
borderColor: Colors.theme1.greenCF, borderColor: Colors.theme1.greenCF,
backgroundColor: Colors.theme1.greenFF + "0a", backgroundColor: theme === 'light' ? Colors.theme1.greenFF + "0a" : null,
width: fontSize.sm * 6 + 18, width: fontSize.sm * 6 + 18,
}, },
]} ]}
@ -479,7 +516,9 @@ function Book({
style={{ style={{
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.xs, fontSize: fontSize.xs,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.greenCF,
paddingVertical: 4, paddingVertical: 4,
}} }}
> >
@ -528,7 +567,7 @@ function Book({
style={[ style={[
{ {
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
color: "#275077", color: theme === 'light' ? "#275077" : Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}, },
tw(""), tw(""),

@ -31,6 +31,7 @@ function Commnets({
productId, productId,
getFullList, getFullList,
orderFullList, orderFullList,
theme
}) { }) {
React.useEffect(() => { React.useEffect(() => {
if (!orderFullList.length) { if (!orderFullList.length) {
@ -46,18 +47,19 @@ function Commnets({
inverted={true} inverted={true}
style={{ marginTop: 20, paddingBottom: 10 }} style={{ marginTop: 20, paddingBottom: 10 }}
data={comments} data={comments}
renderItem={({ item }) => <Comment comment={item} />} renderItem={({ item }) => <Comment comment={item} theme={theme} />}
keyExtractor={(item) => item.id} keyExtractor={(item) => item.id}
/> />
<AddComment <AddComment
addComment={addComment} addComment={addComment}
productId={productId} productId={productId}
theme={theme}
/> />
</View> </View>
); );
} }
const Comment = ({ comment }) => { const Comment = ({ comment, theme }) => {
return ( return (
<View <View
style={[ style={[
@ -126,7 +128,7 @@ const Comment = ({ comment }) => {
); );
}; };
const AddComment = ({ addComment, productId, ...props }) => { const AddComment = ({ addComment, productId, theme, ...props }) => {
const [commentForm, setCommentForm] = React.useState({ const [commentForm, setCommentForm] = React.useState({
title: "", title: "",
text: "", text: "",
@ -148,32 +150,32 @@ const AddComment = ({ addComment, productId, ...props }) => {
style={[ style={[
tw("w-full mt-4 px-2 rounded-md"), tw("w-full mt-4 px-2 rounded-md"),
{ {
backgroundColor: Colors.theme1.grayF9, backgroundColor: theme === 'light' ? Colors.theme1.grayF9 : null,
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
fontSize: fontSize.base, fontSize: fontSize.base,
textAlign: "right", textAlign: "right",
fontFamily: "light", fontFamily: "light",
borderWidth: 1, borderWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor: theme === 'light' ? Colors.theme1.grayE3 : Colors.theme1.white + '55',
height : fontSize.base + 30 height : fontSize.base + 30
}, },
]} ]}
value={comment.title} value={comment.title}
placeholder="عنوان نظر ..." placeholder="عنوان نظر ..."
onChangeText={(text) => setCommentForm({...commentForm, title : text})} onChangeText={(text) => setCommentForm({...commentForm, title : text})}
placeholderTextColor={theme === 'light' ? "auto" : Colors.theme1.white + 'aa'}
/> />
<TextInput <TextInput
style={[ style={[
tw("w-full mt-4 py-4 px-2 rounded-md h-40"), tw("w-full mt-4 py-4 px-2 rounded-md h-40"),
{ {
backgroundColor: Colors.theme1.grayF9, backgroundColor: theme === 'light' ? Colors.theme1.grayF9 : null,
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
textAlign: "right", textAlign: "right",
fontFamily: "light", fontFamily: "light",
borderWidth: 1, borderWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor: theme === 'light' ? Colors.theme1.grayE3 : Colors.theme1.white + '55',
}, },
]} ]}
@ -182,6 +184,7 @@ const AddComment = ({ addComment, productId, ...props }) => {
textAlignVertical="top" textAlignVertical="top"
placeholder="متن نظر ..." placeholder="متن نظر ..."
onChangeText={(text) => setCommentForm({...commentForm, text})} onChangeText={(text) => setCommentForm({...commentForm, text})}
placeholderTextColor={theme === 'light' ? "auto" : Colors.theme1.white + 'aa'}
/> />
<View style={tw("w-full mt-4")}> <View style={tw("w-full mt-4")}>
<Pressable <Pressable
@ -199,6 +202,7 @@ const AddComment = ({ addComment, productId, ...props }) => {
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({
orderFullList: state.userFactor.fullList, orderFullList: state.userFactor.fullList,
theme1: state.publicApi.theme1,
}); });
const mapDispatchToProps = { const mapDispatchToProps = {

@ -84,7 +84,6 @@ const Info = ({
paddingBottom: 100, paddingBottom: 100,
}, },
container: { container: {
backgroundColor: "white",
flexDirection: "column", flexDirection: "column",
paddingVertical: 5, paddingVertical: 5,
paddingHorizontal: 16, paddingHorizontal: 16,

@ -20,7 +20,10 @@ function Description({ title, onPress, mobile, theme }) {
}` }`
), ),
{ {
backgroundColor: Colors.theme1.greenCF + "15", backgroundColor:
theme === "light"
? Colors.theme1.greenCF + "15"
: Colors.theme1.blue90 + "33",
// borderWidth : 1, // borderWidth : 1,
}, },
]} ]}
@ -29,7 +32,8 @@ function Description({ title, onPress, mobile, theme }) {
style={[ style={[
{ {
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
fontFamily: "demi", fontFamily: "demi",
}, },
tw(""), tw(""),
@ -40,7 +44,7 @@ function Description({ title, onPress, mobile, theme }) {
<Entypo <Entypo
name="chevron-small-left" name="chevron-small-left"
size={20} size={20}
color={Colors.theme1.green79} color={theme === "light" ? Colors.theme1.green79 : Colors.theme1.white}
/> />
</TouchableOpacity> </TouchableOpacity>
); );

@ -13,11 +13,10 @@ import Colors from "../../../constants/Colors";
const width = Dimensions.get("window").width; const width = Dimensions.get("window").width;
function Rates({ rate, productId, addVote, isBuyed = null, theme }) { function Rates({ rate, productId, addVote, isBuyed = null, theme }) {
return ( return (
<View style={tw("flex flex-row-reverse")}> <View style={tw("flex flex-row-reverse")}>
<Pressable <Pressable
style={[tw("flex items-center justify-center"), { width: "25%" }]} style={[tw("flex items-center justify-center"), { width: "25%" }]}
onPress={() => onPress={() =>
!isBuyed !isBuyed
? asyncAwesomeAlert("خطا", "شما این محصول رو خریداری نکرده اید.", { ? asyncAwesomeAlert("خطا", "شما این محصول رو خریداری نکرده اید.", {
@ -28,7 +27,11 @@ function Rates({ rate, productId, addVote, isBuyed = null, theme }) {
> >
<Text <Text
style={[ style={[
{ fontSize: fontSize.xl6, color: "#05335F", fontFamily: "bold" }, {
fontSize: fontSize.xl6,
color: theme === "light" ? "#05335F" : Colors.theme1.white,
fontFamily: "bold",
},
]} ]}
> >
{rate} {rate}
@ -44,7 +47,7 @@ function Rates({ rate, productId, addVote, isBuyed = null, theme }) {
<Text <Text
style={{ style={{
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: "#707070", color: theme === "light" ? "#707070" : Colors.theme1.white,
fontFamily: "light", fontFamily: "light",
marginTop: 5, marginTop: 5,
}} }}
@ -67,14 +70,13 @@ function Rates({ rate, productId, addVote, isBuyed = null, theme }) {
); );
} }
const Progress = ({ data,theme, ...props }) => { const Progress = ({ data, theme, ...props }) => {
return ( return (
<View style={[tw("flex flex-1 flex-row items-center py-1.5")]}> <View style={[tw("flex flex-1 flex-row items-center py-1.5")]}>
<Text <Text
style={{ style={{
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: "#05335F", color: theme === "light" ? "#05335F" : Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}} }}
> >
@ -102,7 +104,7 @@ const Progress = ({ data,theme, ...props }) => {
fontFamily: "light", fontFamily: "light",
width: width / 7.5, width: width / 7.5,
textAlign: "center", textAlign: "center",
color: "#05335F", color: theme === "light" ? "#05335F" : Colors.theme1.white,
}} }}
> >
{data.value + "%"} {data.value + "%"}
@ -112,7 +114,7 @@ const Progress = ({ data,theme, ...props }) => {
}; };
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({
theme: state.publicApi.theme theme: state.publicApi.theme,
}); });
const mapDispatchToProps = { const mapDispatchToProps = {

@ -52,7 +52,6 @@ const styles = StyleSheet.create({
paddingBottom: 100, paddingBottom: 100,
}, },
container: { container: {
backgroundColor: "white",
flexDirection: "column", flexDirection: "column",
paddingVertical: 5, paddingVertical: 5,
paddingHorizontal: 16, paddingHorizontal: 16,

@ -12,7 +12,7 @@ import Select from "../../../components/Select";
const Header = ({ setFilterOptions, filterOptions, levels, productTypes }) => { const Header = ({ setFilterOptions, filterOptions, levels, productTypes }) => {
return ( return (
<View style={tw("flex px-4 h-32 bg-white")}> <View style={tw("flex px-4 h-32")}>
<Search <Search
onChange={(val) => setFilterOptions({ ...filterOptions, search: val })} onChange={(val) => setFilterOptions({ ...filterOptions, search: val })}
placeholder={"نام کتاب یا دوره را جستجو کنید"} placeholder={"نام کتاب یا دوره را جستجو کنید"}

@ -75,7 +75,8 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
{ {
width: mobile ? "auto" : width / 2.2, width: mobile ? "auto" : width / 2.2,
borderWidth: 1, borderWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor:
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"),
}, },
tw(`flex mb-5 p-2 rounded-md ${mobile ? "w-full" : ""}`), tw(`flex mb-5 p-2 rounded-md ${mobile ? "w-full" : ""}`),
]} ]}
@ -100,7 +101,10 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
{ {
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.lg, fontSize: fontSize.lg,
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
}, },
]} ]}
@ -123,7 +127,14 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
<Text <Text
style={[ style={[
tw("w-full flex flex-row text-left"), tw("w-full flex flex-row text-left"),
{ fontSize: fontSize.xl, fontFamily: "bold" }, {
fontSize: fontSize.xl,
fontFamily: "bold",
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
},
]} ]}
> >
{separate(product?.product[2]?.price)}{" "} {separate(product?.product[2]?.price)}{" "}
@ -145,7 +156,8 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
width: mobile ? width / 2 - 25 : width / 3.2, width: mobile ? width / 2 - 25 : width / 3.2,
marginBottom: 15, marginBottom: 15,
borderWidth: 1, borderWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor:
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"),
}, },
tw("flex justify-between px-2 pt-2 rounded-md"), tw("flex justify-between px-2 pt-2 rounded-md"),
]} ]}
@ -176,10 +188,13 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
style={{ style={{
fontSize: fontSize.base, fontSize: fontSize.base,
marginTop: 5, marginTop: 5,
color: "#05335F",
fontFamily: "bold", fontFamily: "bold",
width: "100%", width: "100%",
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
}} }}
> >
{"کتاب دیجیتال" + " " + product?.name} {"کتاب دیجیتال" + " " + product?.name}
@ -206,7 +221,10 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
style={[ style={[
tw("text-center ml-1"), tw("text-center ml-1"),
{ {
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.xl2, fontSize: fontSize.xl2,
}, },
@ -217,7 +235,10 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
<Text <Text
style={{ style={{
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.gray2077, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}} }}
> >
@ -238,7 +259,8 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
width: mobile ? width / 2 - 25 : width / 3.2, width: mobile ? width / 2 - 25 : width / 3.2,
marginBottom: 15, marginBottom: 15,
borderWidth: 1, borderWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor:
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"),
}, },
tw("flex justify-between px-2 pt-2 rounded-md"), tw("flex justify-between px-2 pt-2 rounded-md"),
]} ]}
@ -269,7 +291,10 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
style={{ style={{
fontSize: fontSize.base, fontSize: fontSize.base,
marginTop: 5, marginTop: 5,
color: "#05335F", color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
width: "100%", width: "100%",
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
@ -299,7 +324,10 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
style={[ style={[
tw("text-center ml-1"), tw("text-center ml-1"),
{ {
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.xl2, fontSize: fontSize.xl2,
}, },
@ -310,7 +338,10 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
<Text <Text
style={{ style={{
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.gray2077, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}} }}
> >
@ -328,7 +359,7 @@ const Main = ({ books, filterOptions, grades, mobile, theme }) => {
onLayout={() => setWidth(Dimensions.get("window").width)} onLayout={() => setWidth(Dimensions.get("window").width)}
style={[ style={[
tw( tw(
`flex w-full px-4 flex-wrap justify-between bg-white pb-20 ${ `flex w-full px-4 flex-wrap justify-between ${
ios ? "flex-row-reverse" : "flex-row" ios ? "flex-row-reverse" : "flex-row"
}` }`
), ),

@ -5,6 +5,7 @@ import {
ScrollView, ScrollView,
SafeAreaView, SafeAreaView,
StatusBar, StatusBar,
Dimensions,
LayoutAnimation, LayoutAnimation,
} from "react-native"; } from "react-native";
import { connect } from "react-redux"; import { connect } from "react-redux";
@ -17,6 +18,9 @@ import Main from "./components/Main";
//style //style
//variables
const {height} = Dimensions.get("window");
function Products({ function Products({
books, books,
getBooks, getBooks,
@ -51,7 +55,7 @@ function Products({
> >
<Drawer setBoxPosition={setBoxPosition} position={position} /> <Drawer setBoxPosition={setBoxPosition} position={position} />
<Header /> <Header />
<ScrollView contentContainerStyle={{ paddingBottom: 100 }}> <ScrollView contentContainerStyle={{ paddingBottom: height / 2.5 }}>
<Main books={books} grades={grades} /> <Main books={books} grades={grades} />
</ScrollView> </ScrollView>
</SafeAreaView> </SafeAreaView>

@ -29,7 +29,7 @@ const List = ({ mobile, theme }) => {
<Path <Path
d="M17 7a5 5 0 1 1-5-5 5 5 0 0 1 5 5Z" d="M17 7a5 5 0 1 1-5-5 5 5 0 0 1 5 5Z"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -38,7 +38,7 @@ const List = ({ mobile, theme }) => {
data-name="Vector" data-name="Vector"
d="M20.59 22c0-3.87-3.85-7-8.59-7s-8.59 3.13-8.59 7" d="M20.59 22c0-3.87-3.85-7-8.59-7s-8.59 3.13-8.59 7"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -54,7 +54,7 @@ const List = ({ mobile, theme }) => {
<Path <Path
d="M7.5 7.67V6.7a4.773 4.773 0 0 1 4.06-4.67 4.5 4.5 0 0 1 4.94 4.478v1.38" d="M7.5 7.67V6.7a4.773 4.773 0 0 1 4.06-4.67 4.5 4.5 0 0 1 4.94 4.478v1.38"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -63,7 +63,7 @@ const List = ({ mobile, theme }) => {
data-name="Vector" data-name="Vector"
d="M9 22h6c4.02 0 4.74-1.61 4.95-3.57l.75-6C20.97 9.99 20.27 8 16 8H8c-4.27 0-4.97 1.99-4.7 4.43l.75 6C4.26 20.39 4.98 22 9 22Z" d="M9 22h6c4.02 0 4.74-1.61 4.95-3.57l.75-6C20.97 9.99 20.27 8 16 8H8c-4.27 0-4.97 1.99-4.7 4.43l.75 6C4.26 20.39 4.98 22 9 22Z"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -72,7 +72,7 @@ const List = ({ mobile, theme }) => {
data-name="Vector" data-name="Vector"
d="M15.496 12h.005M8.495 12H8.5" d="M15.496 12h.005M8.495 12H8.5"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={2} strokeWidth={2}
@ -88,7 +88,7 @@ const List = ({ mobile, theme }) => {
<Path <Path
d="M22 16.548V4.642a1.959 1.959 0 0 0-2.17-1.963h-.06a19.029 19.029 0 0 0-7.07 2.338l-.17.109a1.121 1.121 0 0 1-1.06 0l-.25-.148a18.935 18.935 0 0 0-7.06-2.309A1.957 1.957 0 0 0 2 4.632v11.916a2.036 2.036 0 0 0 1.74 1.953l.29.039a25.941 25.941 0 0 1 7.44 2.407l.04.02a1.094 1.094 0 0 0 .96 0 25.705 25.705 0 0 1 7.46-2.427l.33-.039A2.036 2.036 0 0 0 22 16.548Z" d="M22 16.548V4.642a1.959 1.959 0 0 0-2.17-1.963h-.06a19.029 19.029 0 0 0-7.07 2.338l-.17.109a1.121 1.121 0 0 1-1.06 0l-.25-.148a18.935 18.935 0 0 0-7.06-2.309A1.957 1.957 0 0 0 2 4.632v11.916a2.036 2.036 0 0 0 1.74 1.953l.29.039a25.941 25.941 0 0 1 7.44 2.407l.04.02a1.094 1.094 0 0 0 .96 0 25.705 25.705 0 0 1 7.46-2.427l.33-.039A2.036 2.036 0 0 0 22 16.548Z"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -97,7 +97,7 @@ const List = ({ mobile, theme }) => {
data-name="Vector" data-name="Vector"
d="M12 5.236v15M19.955 8.4h-2.25M19.918 11.369h-3" d="M12 5.236v15M19.955 8.4h-2.25M19.918 11.369h-3"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -114,7 +114,7 @@ const List = ({ mobile, theme }) => {
<Path <Path
d="M18.085 20.769H6.528c-3.467 0-5.778-2-5.778-6.673V7.423C.75 2.75 3.061.75 6.528.75h11.557c3.467 0 5.778 2 5.778 6.673v6.673c0 4.671-2.313 6.673-5.778 6.673Z" d="M18.085 20.769H6.528c-3.467 0-5.778-2-5.778-6.673V7.423C.75 2.75 3.061.75 6.528.75h11.557c3.467 0 5.778 2 5.778 6.673v6.673c0 4.671-2.313 6.673-5.778 6.673Z"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -124,7 +124,7 @@ const List = ({ mobile, theme }) => {
data-name="Vector" data-name="Vector"
d="M8.954 10.76V9.296c0-1.878 1.329-2.646 2.951-1.708l1.268.732 1.268.732c1.622.939 1.622 2.476 0 3.415l-1.267.732-1.268.732c-1.623.938-2.952.17-2.952-1.708V10.76Z" d="M8.954 10.76V9.296c0-1.878 1.329-2.646 2.951-1.708l1.268.732 1.268.732c1.622.939 1.622 2.476 0 3.415l-1.267.732-1.268.732c-1.623.938-2.952.17-2.952-1.708V10.76Z"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -141,7 +141,7 @@ const List = ({ mobile, theme }) => {
<Path <Path
d="M15.407 11.316h-5.313" d="M15.407 11.316h-5.313"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -150,7 +150,7 @@ const List = ({ mobile, theme }) => {
data-name="Vector" data-name="Vector"
d="M12.75 8.723v5.313M17.872 2.125H7.628a4.111 4.111 0 0 0-4.1 4.1v14.972c0 1.912 1.371 2.72 3.049 1.8l5.185-2.879a2.251 2.251 0 0 1 1.987 0l5.185 2.879c1.679.935 3.049.128 3.049-1.8V6.225a4.127 4.127 0 0 0-4.111-4.1Z" d="M12.75 8.723v5.313M17.872 2.125H7.628a4.111 4.111 0 0 0-4.1 4.1v14.972c0 1.912 1.371 2.72 3.049 1.8l5.185-2.879a2.251 2.251 0 0 1 1.987 0l5.185 2.879c1.679.935 3.049.128 3.049-1.8V6.225a4.127 4.127 0 0 0-4.111-4.1Z"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -165,7 +165,7 @@ const List = ({ mobile, theme }) => {
<Svg xmlns="http://www.w3.org/2000/svg" width={24} height={24}> <Svg xmlns="http://www.w3.org/2000/svg" width={24} height={24}>
<G <G
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -184,7 +184,7 @@ const List = ({ mobile, theme }) => {
data-name="Vector" data-name="Vector"
d="M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z" d="M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z"
fill="none" fill="none"
stroke="#37a865" stroke={theme === 'light' ? Colors.theme1.greenCF : Colors.theme1.white}
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth={1.5} strokeWidth={1.5}
@ -211,7 +211,7 @@ const List = ({ mobile, theme }) => {
), ),
{ {
borderBottomWidth: 1, borderBottomWidth: 1,
borderColor: Colors.theme1.grayE3 + "aa", borderColor: Colors.theme1.grayE3 + (theme === 'light' ? "aa" : '55'),
}, },
]} ]}
onPress={() => page.onPress()} onPress={() => page.onPress()}
@ -223,7 +223,7 @@ const List = ({ mobile, theme }) => {
fontFamily: "regular", fontFamily: "regular",
marginTop: 5, marginTop: 5,
marginRight: mobile ? 10 : 20, marginRight: mobile ? 10 : 20,
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
fontSize: mobile ? fontSize.tiny : fontSize.lg, fontSize: mobile ? fontSize.tiny : fontSize.lg,
}} }}
> >

@ -32,7 +32,6 @@ const ProfileBookmark = ({ myCourses = [], mobile, theme }) => {
style={{ style={{
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
position: "relative", position: "relative",
backgroundColor: "white",
flex: 1, flex: 1,
}} }}
> >

@ -199,7 +199,6 @@ const ProfileAddress = ({
style={{ style={{
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
position: "relative", position: "relative",
backgroundColor: "white",
flex: 1, flex: 1,
paddingBottom: 20, paddingBottom: 20,
}} }}

@ -43,7 +43,6 @@ const ProfileBookmark = ({
style={{ style={{
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
position: "relative", position: "relative",
backgroundColor: "white",
flex: 1, flex: 1,
}} }}
> >
@ -111,7 +110,7 @@ const Bookmark = ({ bookmark, deleteItem, mobile, grades, theme, loading }) => {
tw("flex flex-row-reverse rounded-md justify-between px-3.5 py-2 mb-4"), tw("flex flex-row-reverse rounded-md justify-between px-3.5 py-2 mb-4"),
{ {
borderWidth: 1.5, borderWidth: 1.5,
borderColor: Colors.theme1.greenCF, borderColor: Colors.theme1.greenCF + (theme === "light" ? "" : "77"),
}, },
]} ]}
onPress={() => onPress={() =>
@ -155,7 +154,8 @@ const Bookmark = ({ bookmark, deleteItem, mobile, grades, theme, loading }) => {
style={{ style={{
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
color: Colors.theme1.gray20, color:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.white,
width: width / 3, width: width / 3,
textAlign: "right", textAlign: "right",
}} }}
@ -170,7 +170,10 @@ const Bookmark = ({ bookmark, deleteItem, mobile, grades, theme, loading }) => {
marginTop: 5, marginTop: 5,
fontFamily: "regular", fontFamily: "regular",
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
}} }}
> >
{"پایه" + " " + grades[bookmark?.product?.book?.gradeId]} {"پایه" + " " + grades[bookmark?.product?.book?.gradeId]}
@ -192,7 +195,7 @@ const Bookmark = ({ bookmark, deleteItem, mobile, grades, theme, loading }) => {
> >
<Path <Path
d="M20.869 2.482H8.908a4.8 4.8 0 0 0-4.789 4.789v17.483c0 2.233 1.6 3.176 3.561 2.1l6.055-3.362a2.628 2.628 0 0 1 2.32 0l6.055 3.362c1.96 1.092 3.561.149 3.561-2.1V7.271a4.819 4.819 0 0 0-4.802-4.789Z" d="M20.869 2.482H8.908a4.8 4.8 0 0 0-4.789 4.789v17.483c0 2.233 1.6 3.176 3.561 2.1l6.055-3.362a2.628 2.628 0 0 1 2.32 0l6.055 3.362c1.96 1.092 3.561.149 3.561-2.1V7.271a4.819 4.819 0 0 0-4.802-4.789Z"
fill="#37a865" fill={"#37a865" + (theme === "light" ? "" : "aa")}
/> />
<Path <Path
data-name="Vector" data-name="Vector"
@ -231,7 +234,6 @@ const styles = StyleSheet.create({
position: "relative", position: "relative",
}, },
container: { container: {
backgroundColor: "white",
flexDirection: "column", flexDirection: "column",
paddingVertical: 0, paddingVertical: 0,
paddingHorizontal: 0, paddingHorizontal: 0,

@ -10,14 +10,16 @@ import Colors from "../../../constants/Colors";
const ios = Platform.OS === "ios"; const ios = Platform.OS === "ios";
const Trophy = ({theme}) => { const Trophy = ({ theme }) => {
return ( return (
<View <View
style={[ style={[
tw( tw(`w-full flex py-3 px-3 justify-between flex-row-reverse`),
`w-full flex py-3 px-3 justify-between flex-row-reverse` {
), backgroundColor: theme === "light" ? Colors.theme1.yellow2 : null,
{ backgroundColor: Colors.theme1.yellow2 }, borderWidth: theme === "light" ? 0 : 1,
borderColor: Colors.theme1.yellow2,
},
]} ]}
> >
<View style={[tw(`flex flex-row-reverse`)]}> <View style={[tw(`flex flex-row-reverse`)]}>
@ -55,7 +57,8 @@ const Trophy = ({theme}) => {
fontFamily: "regular", fontFamily: "regular",
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
marginRight: 10, marginRight: 10,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.yellow2,
}} }}
> >
{"امتیاز شما" + " " + 14560} {"امتیاز شما" + " " + 14560}
@ -66,7 +69,8 @@ const Trophy = ({theme}) => {
style={{ style={{
fontFamily: "light", fontFamily: "light",
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.yellow2,
}} }}
> >
مشاهده جوایز مشاهده جوایز
@ -77,7 +81,7 @@ const Trophy = ({theme}) => {
}; };
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({
theme: state.publicApi.theme theme: state.publicApi.theme,
}); });
export default connect(mapStateToProps)(Trophy); export default connect(mapStateToProps)(Trophy);

@ -42,7 +42,10 @@ const User = ({ user, mobile, theme }) => {
<Text <Text
style={{ style={{
fontSize: mobile ? fontSize.lg : fontSize.xl5, fontSize: mobile ? fontSize.lg : fontSize.xl5,
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}} }}
> >
@ -51,7 +54,10 @@ const User = ({ user, mobile, theme }) => {
<Text <Text
style={{ style={{
fontSize: mobile ? fontSize.tiny : fontSize.xl2, fontSize: mobile ? fontSize.tiny : fontSize.xl2,
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "light", fontFamily: "light",
marginTop: mobile ? 3 : 6, marginTop: mobile ? 3 : 6,
textAlign: "right", textAlign: "right",
@ -89,7 +95,8 @@ const User = ({ user, mobile, theme }) => {
tw(`flex items-center w-full pb-3 mb-3 flex-row-reverse pt-2`), tw(`flex items-center w-full pb-3 mb-3 flex-row-reverse pt-2`),
{ {
borderTopWidth: 1, borderTopWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor:
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"),
}, },
]} ]}
> >
@ -97,7 +104,10 @@ const User = ({ user, mobile, theme }) => {
style={{ style={{
fontSize: mobile ? fontSize.base : fontSize.xl, fontSize: mobile ? fontSize.base : fontSize.xl,
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
}} }}
> >
افزودن حساب کاربری جدید افزودن حساب کاربری جدید
@ -108,7 +118,10 @@ const User = ({ user, mobile, theme }) => {
marginTop: 3, marginTop: 3,
fontSize: fontSize.xl2, fontSize: fontSize.xl2,
fontFamily: "bold", fontFamily: "bold",
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
}} }}
> >
+ +

@ -32,7 +32,6 @@ const Rules = ({ route, mobile, theme }) => {
paddingBottom: 100, paddingBottom: 100,
}, },
container: { container: {
backgroundColor: "white",
flexDirection: "column", flexDirection: "column",
paddingVertical: 5, paddingVertical: 5,
paddingHorizontal: 16, paddingHorizontal: 16,
@ -97,7 +96,9 @@ const Rules = ({ route, mobile, theme }) => {
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.redC0, color: Colors.theme1.redC0,
backgroundColor: Colors.theme1.redFF, backgroundColor: theme === 'light' ? Colors.theme1.redFF : null,
borderWidth : theme === 'light' ? 0 : 1,
borderColor : Colors.theme1.redC0
}, },
]} ]}
> >
@ -116,7 +117,11 @@ const Switch = ({ theme, active, setActive }) => {
<View <View
style={[ style={[
tw("w-full flex flex-row"), tw("w-full flex flex-row"),
{ borderWidth: 1, borderColor: Colors.theme1.green79 }, {
borderWidth: 1,
borderColor:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.greenCF,
},
]} ]}
> >
<Pressable <Pressable
@ -124,7 +129,9 @@ const Switch = ({ theme, active, setActive }) => {
tw("flex-1 py-3 flex flex-row justify-center"), tw("flex-1 py-3 flex flex-row justify-center"),
{ {
backgroundColor: active backgroundColor: active
? Colors.theme1.green79 + '11' ? theme === "light"
? Colors.theme1.green79 + "11"
: Colors.theme1.greenCF + "22"
: "transparent", : "transparent",
}, },
]} ]}
@ -134,7 +141,8 @@ const Switch = ({ theme, active, setActive }) => {
style={{ style={{
fontFamily: "regular", fontFamily: "regular",
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.greenCF,
}} }}
> >
راهنمای استفاده راهنمای استفاده
@ -146,7 +154,9 @@ const Switch = ({ theme, active, setActive }) => {
tw("flex-1 py-3 flex flex-row justify-center"), tw("flex-1 py-3 flex flex-row justify-center"),
{ {
backgroundColor: !active backgroundColor: !active
? Colors.theme1.green79 + '11' ? theme === "light"
? Colors.theme1.green79 + "11"
: Colors.theme1.greenCF + "22"
: "transparent", : "transparent",
}, },
]} ]}
@ -156,7 +166,8 @@ const Switch = ({ theme, active, setActive }) => {
style={{ style={{
fontFamily: "regular", fontFamily: "regular",
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.greenCF,
}} }}
> >
شرایط و قوانین شرایط و قوانین
@ -175,8 +186,13 @@ const Rule = ({ rule, theme }) => {
{ {
fontFamily: "bold", fontFamily: "bold",
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.green79, color:
backgroundColor: Colors.theme1.green79 + '11', theme === "light" ? Colors.theme1.green79 : Colors.theme1.greenCF,
backgroundColor:
theme === "light" ? Colors.theme1.green79 + "11" : null,
borderWidth: theme === "light" ? 0 : 1,
borderColor: Colors.theme1.greenCF + "55",
textAlign: "right",
}, },
]} ]}
> >
@ -188,7 +204,9 @@ const Rule = ({ rule, theme }) => {
{ {
fontFamily: "regular", fontFamily: "regular",
fontSize: fontSize.sm, fontSize: fontSize.sm,
color: Colors.theme1.gray20, color:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.white,
textAlign: "right",
}, },
]} ]}
> >

@ -48,10 +48,15 @@ function Code({ codeId, setCodeId, theme, loading }) {
} }
style={[ style={[
tw("border-0 flex-1 text-right pr-3"), tw("border-0 flex-1 text-right pr-3"),
{ fontSize: fontSize.tiny, fontFamily: "regular" }, {
fontSize: fontSize.tiny,
fontFamily: "regular",
color:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.white,
},
]} ]}
placeholder={"کد تخفیف دارید ؟"} placeholder={"کد تخفیف دارید ؟"}
placeholderTextColor={Colors.theme1.gray20 + "aa"} placeholderTextColor={theme === 'light' ? Colors.theme1.gray20 + "aa" : Colors.theme1.white + 'aa'}
value={value} value={value}
/> />
<Pressable <Pressable

@ -58,7 +58,7 @@ function Product({
), ),
{ {
borderBottomWidth: 1, borderBottomWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor: Colors.theme1.grayE3 + (theme === 'light' ? "" : "55"),
direction: "rtl", direction: "rtl",
}, },
]} ]}
@ -83,7 +83,8 @@ function Product({
<Text <Text
style={{ style={{
fontSize: mobile ? fontSize.lg : fontSize.xl4, fontSize: mobile ? fontSize.lg : fontSize.xl4,
color: Colors.theme1.green79, color:
theme === "light" ? Colors.theme1.green79 : Colors.theme1.white,
marginBottom: 5, marginBottom: 5,
fontFamily: "bold", fontFamily: "bold",
}} }}
@ -93,7 +94,10 @@ function Product({
<Text <Text
style={{ style={{
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.gray2077, color:
theme === "light"
? Colors.theme1.gray2077
: Colors.theme1.white,
marginBottom: 3, marginBottom: 3,
fontFamily: "regular", fontFamily: "regular",
}} }}
@ -103,7 +107,10 @@ function Product({
<Text <Text
style={{ style={{
fontSize: mobile ? fontSize.sm : fontSize.lg, fontSize: mobile ? fontSize.sm : fontSize.lg,
color: Colors.theme1.gray2077, color:
theme === "light"
? Colors.theme1.gray2077
: Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}} }}
> >
@ -121,6 +128,10 @@ function Product({
{ {
fontSize: mobile ? fontSize.xs : fontSize.tiny, fontSize: mobile ? fontSize.xs : fontSize.tiny,
fontFamily: "regular", fontFamily: "regular",
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
}, },
]} ]}
> >
@ -131,6 +142,10 @@ function Product({
{ {
fontSize: mobile ? fontSize.lg : fontSize.xl, fontSize: mobile ? fontSize.lg : fontSize.xl,
fontFamily: "regular", fontFamily: "regular",
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
}, },
]} ]}
> >
@ -257,7 +272,18 @@ function Product({
}` }`
)} )}
> >
<Text style={[{ fontSize: fontSize.sm, fontFamily: "regular" }]}> <Text
style={[
{
fontSize: fontSize.sm,
fontFamily: "regular",
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
},
]}
>
{" " + "تومان"} {" " + "تومان"}
</Text> </Text>
<Text <Text
@ -265,6 +291,10 @@ function Product({
{ {
fontSize: mobile ? fontSize.xl : fontSize.xl4, fontSize: mobile ? fontSize.xl : fontSize.xl4,
fontFamily: "regular", fontFamily: "regular",
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
}, },
]} ]}
> >

@ -41,7 +41,8 @@ const PriceStatus = ({ name, value, type, theme }) => {
tw(""), tw(""),
{ {
fontSize: fontSize.tiny, fontSize: fontSize.tiny,
color: Colors.theme1.gray20, color:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}, },
]} ]}
@ -55,7 +56,9 @@ const PriceStatus = ({ name, value, type, theme }) => {
color: color:
type === "error" type === "error"
? Colors.theme1.redFF1 ? Colors.theme1.redFF1
: Colors.theme1.green79, : theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: fontSize.xl, fontSize: fontSize.xl,
fontFamily: "bold", fontFamily: "bold",
}, },
@ -69,7 +72,9 @@ const PriceStatus = ({ name, value, type, theme }) => {
color: color:
type === "error" type === "error"
? Colors.theme1.redFF1 ? Colors.theme1.redFF1
: Colors.theme1.green79, : theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: fontSize.sm, fontSize: fontSize.sm,
fontFamily: "regular", fontFamily: "regular",
marginRight: 4, marginRight: 4,
@ -154,7 +159,9 @@ function ShoppingCart({
<Code /> <Code />
<View <View
style={tw( style={tw(
"flex w-full border-t py-2 border-gray-300 border-b mt-6" `flex w-full border-t py-2 border-gray-300 border-b mt-6 ${
theme === "light" ? "" : "border-opacity-20"
}`
)} )}
> >
<PriceStatus <PriceStatus
@ -192,7 +199,10 @@ function ShoppingCart({
<Text <Text
style={[ style={[
{ {
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: fontSize.base, fontSize: fontSize.base,
fontFamily: "bold", fontFamily: "bold",
}, },
@ -204,7 +214,10 @@ function ShoppingCart({
<Text <Text
style={[ style={[
{ {
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: fontSize.xl, fontSize: fontSize.xl,
fontFamily: "bold", fontFamily: "bold",
}, },
@ -215,7 +228,10 @@ function ShoppingCart({
<Text <Text
style={[ style={[
{ {
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: fontSize.sm, fontSize: fontSize.sm,
fontFamily: "regular", fontFamily: "regular",
marginRight: 4, marginRight: 4,
@ -232,14 +248,22 @@ function ShoppingCart({
tw( tw(
"w-full rounded-md flex flex-row justify-center items-center py-3 px-3 my-5" "w-full rounded-md flex flex-row justify-center items-center py-3 px-3 my-5"
), ),
{ backgroundColor: Colors.theme1.greenC8 + "1a" }, {
backgroundColor:
theme === "light"
? Colors.theme1.greenC8 + "1a"
: Colors.theme1.blue90 + "33",
},
]} ]}
> >
<Text <Text
style={[ style={[
tw("mr-1"), tw("mr-1"),
{ {
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: fontSize.sm, fontSize: fontSize.sm,
fontFamily: "regular", fontFamily: "regular",
}, },
@ -250,7 +274,11 @@ function ShoppingCart({
<Ionicons <Ionicons
name="alert-circle-outline" name="alert-circle-outline"
size={20} size={20}
color={Colors.theme1.greenC8} color={
theme === "light"
? Colors.theme1.greenC8
: Colors.theme1.white
}
/> />
</Pressable> </Pressable>
@ -304,11 +332,10 @@ export default connect(mapStateToProps, mapDispatchToProps)(ShoppingCart);
const styles = StyleSheet.create({ const styles = StyleSheet.create({
contentContainerStyle: { contentContainerStyle: {
paddingBottom: 50, paddingBottom: 120,
position: "relative", position: "relative",
}, },
container: { container: {
backgroundColor: "white",
flexDirection: "column", flexDirection: "column",
paddingVertical: 5, paddingVertical: 5,
paddingHorizontal: 16, paddingHorizontal: 16,

@ -85,7 +85,6 @@ function Splash({
}} }}
/> />
</View> </View>
<ActivityIndicator size={"large"} style={{ marginTop: 20 }} /> <ActivityIndicator size={"large"} style={{ marginTop: 20 }} />
</View> </View>
); );

@ -40,7 +40,7 @@ const Season = ({
tw("w-full flex overflow-hidden mb-3"), tw("w-full flex overflow-hidden mb-3"),
{ {
borderBottomWidth: 1, borderBottomWidth: 1,
borderColor: Colors.theme1.grayE3, borderColor: Colors.theme1.grayE3 + (theme === "light" ? "" : "55"),
}, },
]} ]}
> >
@ -56,7 +56,10 @@ const Season = ({
{ {
fontFamily: "bold", fontFamily: "bold",
fontSize: mobile ? fontSize.base : fontSize.lg, fontSize: mobile ? fontSize.base : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
}, },
]} ]}
> >
@ -68,7 +71,10 @@ const Season = ({
{ {
fontFamily: "regular", fontFamily: "regular",
fontSize: mobile ? fontSize.base : fontSize.lg, fontSize: mobile ? fontSize.base : fontSize.lg,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
}, },
]} ]}
> >
@ -82,7 +88,9 @@ const Season = ({
borderColor: borderColor:
Number(index) === 0 Number(index) === 0
? Colors.theme1.greenCF ? Colors.theme1.greenCF
: Colors.theme1.gray2077, : theme === "light"
? Colors.theme1.gray2077
: Colors.theme1.white + "66",
}, },
]} ]}
onPress={() => onPress={() =>
@ -104,7 +112,9 @@ const Season = ({
color: color:
Number(index) === 0 Number(index) === 0
? Colors.theme1.greenCF ? Colors.theme1.greenCF
: Colors.theme1.gray2077, : theme === "light"
? Colors.theme1.gray2077
: Colors.theme1.white + "66",
}} }}
> >
نمایش نمایش
@ -134,7 +144,10 @@ const Season = ({
{ {
fontFamily: "bold", fontFamily: "bold",
fontSize: mobile ? fontSize.base : fontSize.xl, fontSize: mobile ? fontSize.base : fontSize.xl,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.greenC8,
}, },
]} ]}
> >
@ -149,7 +162,9 @@ const Season = ({
season[0].categoryId === activeSeason ? "arrow-up" : "arrow-down" season[0].categoryId === activeSeason ? "arrow-up" : "arrow-down"
} }
size={14} size={14}
color={Colors.theme1.green79} color={
theme === "light" ? Colors.theme1.green79 : Colors.theme1.greenC8
}
/> />
</View> </View>
{season[0]?.categoryId === activeSeason {season[0]?.categoryId === activeSeason

@ -130,7 +130,10 @@ function Product({
<Text <Text
style={{ style={{
marginTop: 5, marginTop: 5,
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: mobile ? fontSize.base : fontSize.xl3, fontSize: mobile ? fontSize.base : fontSize.xl3,
marginBottom: 0, marginBottom: 0,
fontFamily: "demi", fontFamily: "demi",
@ -140,7 +143,10 @@ function Product({
</Text> </Text>
<Text <Text
style={{ style={{
color: Colors.theme1.green79, color:
theme === "light"
? Colors.theme1.green79
: Colors.theme1.white,
fontSize: mobile ? fontSize.tiny : fontSize.xl, fontSize: mobile ? fontSize.tiny : fontSize.xl,
marginTop: 10, marginTop: 10,
fontFamily: "regular", fontFamily: "regular",
@ -206,11 +212,8 @@ function Product({
const styles = StyleSheet.create({ const styles = StyleSheet.create({
contentContainerStyle: { contentContainerStyle: {
paddingBottom: 100, paddingBottom: 100,
// flex : 1,
// backgroundColor : '#fff'
}, },
container: { container: {
backgroundColor: "white",
paddingVertical: 5, paddingVertical: 5,
paddingHorizontal: 16, paddingHorizontal: 16,
}, },

@ -79,7 +79,7 @@ function VideoDisplay({ route, mobile, theme }) {
fontSize: fontSize.xl, fontSize: fontSize.xl,
fontFamily: "bold", fontFamily: "bold",
marginTop: mobile ? 8 : 12, marginTop: mobile ? 8 : 12,
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
textAlign: ios ? "right" : "auto", textAlign: ios ? "right" : "auto",
}} }}
> >
@ -111,8 +111,6 @@ const styles = StyleSheet.create({
paddingBottom: 100, paddingBottom: 100,
}, },
container: { container: {
backgroundColor: "white",
flexDirection: "column",
paddingVertical: 5, paddingVertical: 5,
paddingHorizontal: 16, paddingHorizontal: 16,
}, },

@ -69,7 +69,8 @@ function MostViewedVideo({ videos, grades, mobile, theme }) {
fontSize: mobile ? fontSize.base : fontSize.xl, fontSize: mobile ? fontSize.base : fontSize.xl,
marginTop: 5, marginTop: 5,
paddingRight: 4, paddingRight: 4,
color: Colors.theme1.gray20, color:
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "regular", fontFamily: "regular",
}} }}
> >
@ -85,7 +86,10 @@ function MostViewedVideo({ videos, grades, mobile, theme }) {
<Text <Text
style={[ style={[
{ {
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
fontSize: mobile ? fontSize.sm : fontSize.tiny, fontSize: mobile ? fontSize.sm : fontSize.tiny,
marginRight: 3, marginRight: 3,
@ -97,7 +101,10 @@ function MostViewedVideo({ videos, grades, mobile, theme }) {
<Text <Text
style={[ style={[
{ {
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
fontSize: mobile ? fontSize.xl : fontSize.xl3, fontSize: mobile ? fontSize.xl : fontSize.xl3,
}, },
@ -109,7 +116,10 @@ function MostViewedVideo({ videos, grades, mobile, theme }) {
<Text <Text
style={{ style={{
color: Colors.theme1.gray20, color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "light", fontFamily: "light",
fontSize: mobile ? fontSize.tiny : fontSize.lg, fontSize: mobile ? fontSize.tiny : fontSize.lg,
marginTop: 0, marginTop: 0,
@ -126,13 +136,17 @@ function MostViewedVideo({ videos, grades, mobile, theme }) {
return ( return (
<View style={tw("w-full flex w-full mt-3")}> <View style={tw("w-full flex w-full mt-3")}>
<Header title="پربازدیدترین" route={"Products"} state={{productType : 'دوره ویدئویی'}} /> <Header
title="پربازدیدترین"
route={"Products"}
state={{ productType: "دوره ویدئویی" }}
/>
<FlatList <FlatList
showsHorizontalScrollIndicator={false} showsHorizontalScrollIndicator={false}
horizontal={true} horizontal={true}
inverted={true} inverted={true}
style={tw("pb-1.5 mt-3 flex flex-row w-full")} style={tw("pb-1.5 mt-3 flex flex-row w-full")}
data={videos.slice(0,7)} data={videos.slice(0, 7)}
renderItem={({ item }) => <Video video={item} />} renderItem={({ item }) => <Video video={item} />}
keyExtractor={(item) => item.id} keyExtractor={(item) => item.id}
/> />

@ -50,7 +50,7 @@ const NewestVideo = ({ videos, grades, mobile, theme }) => {
style={{ style={{
fontSize: mobile ? fontSize.base : fontSize.xl, fontSize: mobile ? fontSize.base : fontSize.xl,
marginTop: 5, marginTop: 5,
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "bold", fontFamily: "bold",
}} }}
> >
@ -58,7 +58,7 @@ const NewestVideo = ({ videos, grades, mobile, theme }) => {
</Text> </Text>
<Text <Text
style={{ style={{
color: Colors.theme1.gray20, color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white,
fontFamily: "light", fontFamily: "light",
fontSize: mobile ? fontSize.tiny : fontSize.lg, fontSize: mobile ? fontSize.tiny : fontSize.lg,
marginTop: 5, marginTop: 5,

Loading…
Cancel
Save