|
|
@ -39,12 +39,8 @@ import Blog from "../src/screens/Blog"; |
|
|
|
import Sample from "../src/screens/Product/components/Sample"; |
|
|
|
import Sample from "../src/screens/Product/components/Sample"; |
|
|
|
|
|
|
|
|
|
|
|
//style
|
|
|
|
//style
|
|
|
|
import fontSize from "../src/constants/fontSize"; |
|
|
|
|
|
|
|
import Colors from "../src/constants/Colors"; |
|
|
|
import Colors from "../src/constants/Colors"; |
|
|
|
|
|
|
|
|
|
|
|
const ios = Platform.OS === "ios"; |
|
|
|
|
|
|
|
const colorScheme = Appearance.getColorScheme(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Tab = createBottomTabNavigator(); |
|
|
|
const Tab = createBottomTabNavigator(); |
|
|
|
const BottomTabNavigator = ({}) => { |
|
|
|
const BottomTabNavigator = ({}) => { |
|
|
|
const [headerShown, setHeaderShown] = React.useState(true); |
|
|
|
const [headerShown, setHeaderShown] = React.useState(true); |
|
|
@ -64,10 +60,10 @@ const BottomTabNavigator = ({}) => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
tabBarIconStyle: {}, |
|
|
|
tabBarIconStyle: {}, |
|
|
|
tabBarLabelPosition: "below-icon", |
|
|
|
tabBarLabelPosition: "below-icon", |
|
|
|
tabBarActiveTintColor: Colors.theme1[colorScheme].green79, |
|
|
|
tabBarActiveTintColor: Colors.theme1['light'].green79, |
|
|
|
tabBarInactiveTintColor: "grey", |
|
|
|
tabBarInactiveTintColor: "grey", |
|
|
|
tabBarStyle: { |
|
|
|
tabBarStyle: { |
|
|
|
backgroundColor: Colors.theme1[colorScheme].white, |
|
|
|
backgroundColor: Colors.theme1['light'].white, |
|
|
|
}, |
|
|
|
}, |
|
|
|
tabBarLabelStyle: { |
|
|
|
tabBarLabelStyle: { |
|
|
|
// fontSize: fontSize.sm,
|
|
|
|
// fontSize: fontSize.sm,
|
|
|
@ -88,7 +84,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
width={31.192} |
|
|
|
width={31.192} |
|
|
|
height={31.192} |
|
|
|
height={31.192} |
|
|
|
> |
|
|
|
> |
|
|
|
<G fill={Colors.theme1[colorScheme].green79}> |
|
|
|
<G fill={Colors.theme1['light'].green79}> |
|
|
|
<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" |
|
|
@ -104,7 +100,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
> |
|
|
|
> |
|
|
|
<G |
|
|
|
<G |
|
|
|
fill="none" |
|
|
|
fill="none" |
|
|
|
stroke={Colors.theme1[colorScheme].green79} |
|
|
|
stroke={Colors.theme1['light'].green79} |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeWidth={1.5} |
|
|
|
strokeWidth={1.5} |
|
|
@ -129,7 +125,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
// tabBarBadge: count,
|
|
|
|
// tabBarBadge: count,
|
|
|
|
// tabBarBadgeStyle: {
|
|
|
|
// tabBarBadgeStyle: {
|
|
|
|
// color: "white",
|
|
|
|
// color: "white",
|
|
|
|
// backgroundColor: Colors.theme1[colorScheme].green79,
|
|
|
|
// backgroundColor: Colors.theme1['light'].green79,
|
|
|
|
// fontSize: fontSize.sm,
|
|
|
|
// fontSize: fontSize.sm,
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
title: "سبد خرید", |
|
|
|
title: "سبد خرید", |
|
|
@ -141,7 +137,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
height={31.017} |
|
|
|
height={31.017} |
|
|
|
> |
|
|
|
> |
|
|
|
<G |
|
|
|
<G |
|
|
|
fill={Colors.theme1[colorScheme].green79} |
|
|
|
fill={Colors.theme1['light'].green79} |
|
|
|
stroke={"white"} |
|
|
|
stroke={"white"} |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
@ -163,7 +159,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
> |
|
|
|
> |
|
|
|
<G |
|
|
|
<G |
|
|
|
fill="none" |
|
|
|
fill="none" |
|
|
|
stroke={Colors.theme1[colorScheme].green79} |
|
|
|
stroke={Colors.theme1['light'].green79} |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeWidth={1.5} |
|
|
|
strokeWidth={1.5} |
|
|
@ -192,8 +188,8 @@ const BottomTabNavigator = ({}) => { |
|
|
|
<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[colorScheme].green79} |
|
|
|
fill={Colors.theme1['light'].green79} |
|
|
|
stroke={Colors.theme1[colorScheme].green79} |
|
|
|
stroke={Colors.theme1['light'].green79} |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeWidth={1.5} |
|
|
|
strokeWidth={1.5} |
|
|
@ -216,7 +212,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
<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[colorScheme].green79} |
|
|
|
stroke={Colors.theme1['light'].green79} |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeWidth={1.5} |
|
|
|
strokeWidth={1.5} |
|
|
@ -226,7 +222,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
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[colorScheme].green79} |
|
|
|
stroke={Colors.theme1['light'].green79} |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeWidth={1.5} |
|
|
|
strokeWidth={1.5} |
|
|
@ -250,7 +246,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
> |
|
|
|
> |
|
|
|
<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[colorScheme].green79} |
|
|
|
fill={Colors.theme1['light'].green79} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<Path |
|
|
|
<Path |
|
|
|
data-name="Vector" |
|
|
|
data-name="Vector" |
|
|
@ -270,7 +266,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
> |
|
|
|
> |
|
|
|
<G |
|
|
|
<G |
|
|
|
fill="none" |
|
|
|
fill="none" |
|
|
|
stroke={Colors.theme1[colorScheme].green79} |
|
|
|
stroke={Colors.theme1['light'].green79} |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeWidth={1.5} |
|
|
|
strokeWidth={1.5} |
|
|
@ -299,7 +295,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
> |
|
|
|
> |
|
|
|
<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[colorScheme].green79} |
|
|
|
fill={Colors.theme1['light'].green79} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<Path |
|
|
|
<Path |
|
|
|
data-name="Vector" |
|
|
|
data-name="Vector" |
|
|
@ -320,7 +316,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
<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[colorScheme].green79} |
|
|
|
stroke={Colors.theme1['light'].green79} |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeWidth={1.5} |
|
|
|
strokeWidth={1.5} |
|
|
@ -329,7 +325,7 @@ const BottomTabNavigator = ({}) => { |
|
|
|
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[colorScheme].green79} |
|
|
|
stroke={Colors.theme1['light'].green79} |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeWidth={1.5} |
|
|
|
strokeWidth={1.5} |
|
|
@ -348,7 +344,7 @@ const HomeStackScreen = () => { |
|
|
|
<HomeStack.Navigator |
|
|
|
<HomeStack.Navigator |
|
|
|
screenOptions={{ |
|
|
|
screenOptions={{ |
|
|
|
headerShown: false, |
|
|
|
headerShown: false, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1[colorScheme].white }, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1['light'].white }, |
|
|
|
}} |
|
|
|
}} |
|
|
|
initialRouteName="Home" |
|
|
|
initialRouteName="Home" |
|
|
|
> |
|
|
|
> |
|
|
@ -371,7 +367,7 @@ const ProductsStackScreen = () => { |
|
|
|
<ProductsStack.Navigator |
|
|
|
<ProductsStack.Navigator |
|
|
|
screenOptions={{ |
|
|
|
screenOptions={{ |
|
|
|
headerShown: false, |
|
|
|
headerShown: false, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1[colorScheme].white }, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1['light'].white }, |
|
|
|
}} |
|
|
|
}} |
|
|
|
initialRouteName="Products" |
|
|
|
initialRouteName="Products" |
|
|
|
> |
|
|
|
> |
|
|
@ -388,7 +384,7 @@ const VODStackScreen = () => { |
|
|
|
<VODStack.Navigator |
|
|
|
<VODStack.Navigator |
|
|
|
screenOptions={{ |
|
|
|
screenOptions={{ |
|
|
|
headerShown: false, |
|
|
|
headerShown: false, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1[colorScheme].white }, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1['light'].white }, |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
<VODStack.Screen name="VOD" component={Videos} /> |
|
|
|
<VODStack.Screen name="VOD" component={Videos} /> |
|
|
@ -404,7 +400,7 @@ const CARTStackScreen = () => { |
|
|
|
<CARTStack.Navigator |
|
|
|
<CARTStack.Navigator |
|
|
|
screenOptions={{ |
|
|
|
screenOptions={{ |
|
|
|
headerShown: false, |
|
|
|
headerShown: false, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1[colorScheme].white }, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1['light'].white }, |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
<CARTStack.Screen name="ShoppingCart" component={ShoppingCart} /> |
|
|
|
<CARTStack.Screen name="ShoppingCart" component={ShoppingCart} /> |
|
|
@ -419,7 +415,7 @@ const PROFILEStackScreen = () => { |
|
|
|
<PROFILEStack.Navigator |
|
|
|
<PROFILEStack.Navigator |
|
|
|
screenOptions={{ |
|
|
|
screenOptions={{ |
|
|
|
headerShown: false, |
|
|
|
headerShown: false, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1[colorScheme].white }, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1['light'].white }, |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
<PROFILEStack.Screen name="Profile" component={Profile} /> |
|
|
|
<PROFILEStack.Screen name="Profile" component={Profile} /> |
|
|
@ -444,7 +440,7 @@ const Navigation = ({ getStatus, isLogin, userProducts }) => { |
|
|
|
// initialRouteName="Root"
|
|
|
|
// initialRouteName="Root"
|
|
|
|
screenOptions={{ |
|
|
|
screenOptions={{ |
|
|
|
headerShown: false, |
|
|
|
headerShown: false, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1[colorScheme].white }, |
|
|
|
contentStyle: { backgroundColor: Colors.theme1['light'].white }, |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
<Stack.Screen name="Splash" component={Splash} /> |
|
|
|
<Stack.Screen name="Splash" component={Splash} /> |
|
|
@ -479,6 +475,7 @@ const Navigation = ({ getStatus, isLogin, userProducts }) => { |
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
isLogin: state.user.status, |
|
|
|
isLogin: state.user.status, |
|
|
|
userProducts: state.userProduct.list, |
|
|
|
userProducts: state.userProduct.list, |
|
|
|
|
|
|
|
theme : state.publicApi.theme |
|
|
|
}); |
|
|
|
}); |
|
|
|
const mapDispatchToProps = { |
|
|
|
const mapDispatchToProps = { |
|
|
|
getStatus: user.getStatus, |
|
|
|
getStatus: user.getStatus, |
|
|
|