From 83323e7ee5f22ecd91df6a9d90f45d28adffc705 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Sat, 21 May 2022 09:13:00 +0430 Subject: [PATCH] reza fixed bottomNavigation icons --- navigation/index.js | 30 ++++++++++++++++----------- src/screens/Home/components/Scroll.js | 2 +- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/navigation/index.js b/navigation/index.js index c6d60e4..b6ae801 100644 --- a/navigation/index.js +++ b/navigation/index.js @@ -122,7 +122,7 @@ const BottomTabNavigator = ({ theme, userProducts, bottomNavigation }) => { stroke={theme === "light" ? "#fff" : Colors.theme1.dark} strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} /> ) : ( @@ -144,7 +144,7 @@ const BottomTabNavigator = ({ theme, userProducts, bottomNavigation }) => { } strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} /> { } strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} /> ), @@ -193,7 +193,7 @@ const BottomTabNavigator = ({ theme, userProducts, bottomNavigation }) => { stroke={theme === "light" ? "#fff" : Colors.theme1.dark} strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} /> ) : ( @@ -214,7 +214,7 @@ const BottomTabNavigator = ({ theme, userProducts, bottomNavigation }) => { } strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} > { } strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} data-name="vuesax/linear/music-playlist" /> { stroke={theme === "light" ? "#fff" : Colors.theme1.dark} strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} /> @@ -292,7 +292,7 @@ const BottomTabNavigator = ({ theme, userProducts, bottomNavigation }) => { } strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} data-name="vuesax/linear/music-playlist" /> { } strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} /> @@ -357,7 +357,7 @@ const BottomTabNavigator = ({ theme, userProducts, bottomNavigation }) => { stroke={theme === "light" ? "white" : Colors.theme1.dark} strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} data-name="vuesax/linear/bag-2" > @@ -385,7 +385,7 @@ const BottomTabNavigator = ({ theme, userProducts, bottomNavigation }) => { } strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} data-name="vuesax/linear/bag-2" > @@ -445,7 +445,7 @@ const BottomTabNavigator = ({ theme, userProducts, bottomNavigation }) => { } strokeLinecap="round" strokeLinejoin="round" - strokeWidth={1.5} + strokeWidth={2} > { backgroundColor: theme === "light" ? Colors.theme1.white : Colors.theme1.dark, }, + unmountOnBlur: true }} initialRouteName="Home" > @@ -503,6 +504,7 @@ const ProductsStackScreen = ({ theme }) => { backgroundColor: theme === "light" ? Colors.theme1.white : Colors.theme1.dark, }, + unmountOnBlur: true }} initialRouteName="Products" > @@ -524,6 +526,7 @@ const VODStackScreen = ({ theme }) => { backgroundColor: theme === "light" ? Colors.theme1.white : Colors.theme1.dark, }, + unmountOnBlur: true }} initialRouteName="VOD" > @@ -544,6 +547,7 @@ const CARTStackScreen = ({ theme }) => { backgroundColor: theme === "light" ? Colors.theme1.white : Colors.theme1.dark, }, + unmountOnBlur: true }} initialRouteName="ShoppingCart" > @@ -564,6 +568,7 @@ const PROFILEStackScreen = ({ theme }) => { backgroundColor: theme === "light" ? Colors.theme1.white : Colors.theme1.dark, }, + unmountOnBlur: true }} > @@ -626,6 +631,7 @@ const Navigation = ({ backgroundColor: theme === "light" ? Colors.theme1.white : Colors.theme1.dark, }, + unmountOnBlur: true }} > diff --git a/src/screens/Home/components/Scroll.js b/src/screens/Home/components/Scroll.js index ed70ac6..be7c305 100644 --- a/src/screens/Home/components/Scroll.js +++ b/src/screens/Home/components/Scroll.js @@ -15,7 +15,7 @@ function Scroll({ books, mobile }) { return ( - navigation.push("Product", { + navigation.navigate("Product", { id: book?.id, type: "book", })