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", })