reza fixed bottom navigation label

master
Reza_ashrafi 3 years ago
parent e0ce642e8c
commit 878e2ab2e0
  1. 12
      Tab bar icon/Active/Group 1999.svg
  2. 17
      Tab bar icon/Active/Group 2000.svg
  3. 12
      Tab bar icon/Active/Group 2001.svg
  4. 14
      Tab bar icon/Active/Group 2002.svg
  5. 12
      Tab bar icon/Active/Group 2003.svg
  6. 12
      Tab bar icon/Deactive/Group 2004.svg
  7. 14
      Tab bar icon/Deactive/Group 2005.svg
  8. 12
      Tab bar icon/Deactive/Group 2006.svg
  9. 17
      Tab bar icon/Deactive/Group 2007.svg
  10. 12
      Tab bar icon/Deactive/Group 2008.svg
  11. 11
      blog.svg
  12. 13
      navigation/index.js
  13. 35
      src/components/Drawer.js
  14. 4
      src/screens/Blog/index.js
  15. 2
      src/screens/QR/layouts/Scan/index.js

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" width="57" height="57" viewBox="0 0 57 57">
<g id="Group_1999" data-name="Group 1999" transform="translate(-697 -347)">
<text id="صفحه_اصلی" data-name="صفحهاصلی" transform="translate(754 398)" fill="#3fae8f" font-size="12" font-family="IRANSansX-DemiBold, IRANSansX" font-weight="300"><tspan x="-56.628" y="0">صفحهاصلی</tspan></text>
<g id="vuesax_linear_home-2" data-name="vuesax/linear/home-2" transform="translate(708 347)">
<g id="home-2" transform="translate(0 0)">
<path id="Vector" d="M10.384,1.217,2.411,7.429A7.039,7.039,0,0,0,0,12.34V23.3a6.25,6.25,0,0,0,6.227,6.242H23.356a6.247,6.247,0,0,0,6.227-6.227V12.547a6.987,6.987,0,0,0-2.662-5.1l-9.141-6.4A6.637,6.637,0,0,0,10.384,1.217Z" transform="translate(2.958 2.984)" fill="#3fae8f"/>
<path id="Vector-2" data-name="Vector" d="M0,4.438V0" transform="translate(17.75 22.173)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-3" data-name="Vector" d="M0,0H35.5V35.5H0Z" fill="none" opacity="0"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -0,0 +1,17 @@
<svg xmlns="http://www.w3.org/2000/svg" width="35.5" height="57" viewBox="0 0 35.5 57">
<g id="Group_2000" data-name="Group 2000" transform="translate(-626 -347)">
<text id="کتاب_ها" data-name="کتابها" transform="translate(661 398)" fill="#3fae8f" font-size="12" font-family="IRANSansX-DemiBold, IRANSansX" font-weight="300"><tspan x="-34.896" y="0">کتابها</tspan></text>
<g id="vuesax_linear_book" data-name="vuesax/linear/book" transform="translate(626 347)">
<g id="book" transform="translate(0 0)">
<path id="Vector" d="M29.583,20.823V2.97A2.914,2.914,0,0,0,26.374.026h-.089A27.884,27.884,0,0,0,15.827,3.532l-.251.163a1.639,1.639,0,0,1-1.568,0l-.37-.222A27.745,27.745,0,0,0,3.195.011,2.91,2.91,0,0,0,0,2.955V20.823a3.039,3.039,0,0,0,2.574,2.929L3,23.811a38,38,0,0,1,11,3.609l.059.03a1.6,1.6,0,0,0,1.42,0,37.66,37.66,0,0,1,11.035-3.639l.488-.059A3.039,3.039,0,0,0,29.583,20.823Z" transform="translate(2.958 3.938)" fill="#3fae8f"/>
<path id="Vector-2" data-name="Vector" d="M0,0V22.823" transform="translate(17.75 8.121)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-3" data-name="Vector" d="M3.328,0H0" transform="translate(24.406 12.558)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-4" data-name="Vector" d="M4.438,0H0" transform="translate(22.927 16.996)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<g id="Vector-5" data-name="Vector" transform="translate(35.5 35.5) rotate(180)" fill="none" opacity="0">
<path d="M0,0H35.5V35.5H0Z" stroke="none"/>
<path d="M 1 1 L 1 34.5 L 34.5 34.5 L 34.5 1 L 1 1 M 0 0 L 35.5 0 L 35.5 35.5 L 0 35.5 L 0 0 Z" stroke="none" fill="#707070"/>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" width="39" height="57" viewBox="0 0 39 57">
<g id="Group_2001" data-name="Group 2001" transform="translate(-550 -347)">
<text id="ویدئو_ها" data-name="ویدئوها" transform="translate(589 398)" fill="#3fae8f" font-size="12" font-family="IRANSansX-DemiBold, IRANSansX" font-weight="300"><tspan x="-38.076" y="0">ویدئوها</tspan></text>
<g id="vuesax_linear_video-square" data-name="vuesax/linear/video-square" transform="translate(552 347)">
<g id="video-square" transform="translate(0 0)">
<path id="Vector" d="M10.354,29.583h8.875c7.4,0,10.354-2.958,10.354-10.354V10.354C29.583,2.958,26.625,0,19.229,0H10.354C2.958,0,0,2.958,0,10.354v8.875C0,26.625,2.958,29.583,10.354,29.583Z" transform="translate(2.958 2.958)" fill="#3fae8f"/>
<path id="Vector-2" data-name="Vector" d="M0,5.35V3.161C0,.335,2-.8,4.438.6L6.331,1.7,8.224,2.791c2.441,1.405,2.441,3.713,0,5.118L6.331,9,4.438,10.1C2,11.5,0,10.349,0,7.539Z" transform="translate(13.46 12.4)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-3" data-name="Vector" d="M0,0H35.5V35.5H0Z" fill="none" opacity="0"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" width="44" height="57" viewBox="0 0 44 57">
<g id="Group_2002" data-name="Group 2002" transform="translate(-471 -347)">
<text id="سبد_خرید" data-name="سبدخرید" transform="translate(515 398)" fill="#3fae8f" font-size="12" font-family="IRANSansX-DemiBold, IRANSansX" font-weight="300"><tspan x="-43.86" y="0">سبدخرید</tspan></text>
<g id="vuesax_linear_bag-2" data-name="vuesax/linear/bag-2" transform="translate(475 347)">
<g id="bag-2" transform="translate(0 0)">
<path id="Vector" d="M0,8.375V6.94A7.06,7.06,0,0,1,6.005.032a6.657,6.657,0,0,1,7.307,6.627V8.7" transform="translate(11.094 2.971)" fill="none" stroke="#3fae8f" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-2" data-name="Vector" d="M8.506,20.708h8.875c5.946,0,7.011-2.381,7.322-5.281l1.109-8.875C26.212,2.944,25.177,0,18.861,0H7.027C.711,0-.324,2.944.075,6.553l1.109,8.875C1.5,18.327,2.56,20.708,8.506,20.708Z" transform="translate(4.806 11.833)" fill="#3fae8f"/>
<path id="Vector-3" data-name="Vector" d="M.495.5H.508" transform="translate(22.426 17.25)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
<path id="Vector-4" data-name="Vector" d="M.495.5H.508" transform="translate(12.07 17.25)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
<path id="Vector-5" data-name="Vector" d="M0,0H35.5V35.5H0Z" fill="none" opacity="0"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" width="62" height="57" viewBox="0 0 62 57">
<g id="Group_2003" data-name="Group 2003" transform="translate(-377 -347)">
<text id="حساب_کاربری" data-name="حسابکاربری" transform="translate(439 398)" fill="#3fae8f" font-size="12" font-family="IRANSansX-DemiBold, IRANSansX" font-weight="300"><tspan x="-61.308" y="0">حسابکاربری</tspan></text>
<g id="vuesax_linear_profile" data-name="vuesax/linear/profile" transform="translate(391 347)">
<g id="profile" transform="translate(0)">
<path id="Vector" d="M6.8,13.12a2.689,2.689,0,0,0-.488,0,6.575,6.575,0,1,1,.488,0Z" transform="translate(11.182 2.958)" fill="#3fae8f"/>
<path id="Vector-2" data-name="Vector" d="M2.685,2.03c-3.58,2.4-3.58,6.3,0,8.683a14.446,14.446,0,0,0,14.806,0c3.58-2.4,3.58-6.3,0-8.683A14.513,14.513,0,0,0,2.685,2.03Z" transform="translate(7.906 19.507)" fill="#3fae8f"/>
<path id="Vector-3" data-name="Vector" d="M0,0H35.5V35.5H0Z" transform="translate(35.5 35.5) rotate(180)" fill="none" opacity="0"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" width="62" height="57" viewBox="0 0 62 57">
<g id="Group_2004" data-name="Group 2004" transform="translate(-377 -436)">
<text id="حساب_کاربری" data-name="حسابکاربری" transform="translate(439 487)" fill="#a7a7a7" font-size="12" font-family="IRANSansX-DemiBold, IRANSansX" font-weight="300"><tspan x="-61.308" y="0">حسابکاربری</tspan></text>
<g id="vuesax_linear_profile" data-name="vuesax/linear/profile" transform="translate(391 436)">
<g id="profile" transform="translate(0)">
<path id="Vector" d="M6.8,13.12a2.689,2.689,0,0,0-.488,0,6.575,6.575,0,1,1,.488,0Z" transform="translate(11.182 2.958)" fill="#a7a7a7"/>
<path id="Vector-2" data-name="Vector" d="M2.685,2.03c-3.58,2.4-3.58,6.3,0,8.683a14.446,14.446,0,0,0,14.806,0c3.58-2.4,3.58-6.3,0-8.683A14.513,14.513,0,0,0,2.685,2.03Z" transform="translate(7.906 19.507)" fill="#a7a7a7"/>
<path id="Vector-3" data-name="Vector" d="M0,0H35.5V35.5H0Z" transform="translate(35.5 35.5) rotate(180)" fill="none" opacity="0"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" width="44" height="57" viewBox="0 0 44 57">
<g id="Group_2005" data-name="Group 2005" transform="translate(-471 -436)">
<text id="سبد_خرید" data-name="سبدخرید" transform="translate(515 487)" fill="#a7a7a7" font-size="12" font-family="IRANSansX-DemiBold, IRANSansX" font-weight="300"><tspan x="-43.86" y="0">سبدخرید</tspan></text>
<g id="vuesax_linear_bag-2" data-name="vuesax/linear/bag-2" transform="translate(475 436)">
<g id="bag-2" transform="translate(0 0)">
<path id="Vector" d="M0,8.375V6.94A7.06,7.06,0,0,1,6.005.032a6.657,6.657,0,0,1,7.307,6.627V8.7" transform="translate(11.094 2.971)" fill="none" stroke="#a7a7a7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-2" data-name="Vector" d="M8.506,20.708h8.875c5.946,0,7.011-2.381,7.322-5.281l1.109-8.875C26.212,2.944,25.177,0,18.861,0H7.027C.711,0-.324,2.944.075,6.553l1.109,8.875C1.5,18.327,2.56,20.708,8.506,20.708Z" transform="translate(4.806 11.833)" fill="#a7a7a7"/>
<path id="Vector-3" data-name="Vector" d="M.495.5H.508" transform="translate(22.426 17.25)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
<path id="Vector-4" data-name="Vector" d="M.495.5H.508" transform="translate(12.07 17.25)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
<path id="Vector-5" data-name="Vector" d="M0,0H35.5V35.5H0Z" fill="none" opacity="0"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" width="39" height="57" viewBox="0 0 39 57">
<g id="Group_2006" data-name="Group 2006" transform="translate(-550 -436)">
<text id="ویدئو_ها" data-name="ویدئوها" transform="translate(589 487)" fill="#a7a7a7" font-size="12" font-family="IRANSansX-DemiBold, IRANSansX" font-weight="300"><tspan x="-38.076" y="0">ویدئوها</tspan></text>
<g id="vuesax_linear_video-square" data-name="vuesax/linear/video-square" transform="translate(552 436)">
<g id="video-square" transform="translate(0 0)">
<path id="Vector" d="M10.354,29.583h8.875c7.4,0,10.354-2.958,10.354-10.354V10.354C29.583,2.958,26.625,0,19.229,0H10.354C2.958,0,0,2.958,0,10.354v8.875C0,26.625,2.958,29.583,10.354,29.583Z" transform="translate(2.958 2.958)" fill="#a7a7a7"/>
<path id="Vector-2" data-name="Vector" d="M0,5.35V3.161C0,.335,2-.8,4.438.6L6.331,1.7,8.224,2.791c2.441,1.405,2.441,3.713,0,5.118L6.331,9,4.438,10.1C2,11.5,0,10.349,0,7.539Z" transform="translate(13.46 12.4)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-3" data-name="Vector" d="M0,0H35.5V35.5H0Z" fill="none" opacity="0"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -0,0 +1,17 @@
<svg xmlns="http://www.w3.org/2000/svg" width="35.5" height="57" viewBox="0 0 35.5 57">
<g id="Group_2007" data-name="Group 2007" transform="translate(-626 -436)">
<text id="کتاب_ها" data-name="کتابها" transform="translate(661 487)" fill="#a7a7a7" font-size="12" font-family="IRANSansX-DemiBold, IRANSansX" font-weight="300"><tspan x="-34.896" y="0">کتابها</tspan></text>
<g id="vuesax_linear_book" data-name="vuesax/linear/book" transform="translate(626 436)">
<g id="book" transform="translate(0 0)">
<path id="Vector" d="M29.583,20.823V2.97A2.914,2.914,0,0,0,26.374.026h-.089A27.884,27.884,0,0,0,15.827,3.532l-.251.163a1.639,1.639,0,0,1-1.568,0l-.37-.222A27.745,27.745,0,0,0,3.195.011,2.91,2.91,0,0,0,0,2.955V20.823a3.039,3.039,0,0,0,2.574,2.929L3,23.811a38,38,0,0,1,11,3.609l.059.03a1.6,1.6,0,0,0,1.42,0,37.66,37.66,0,0,1,11.035-3.639l.488-.059A3.039,3.039,0,0,0,29.583,20.823Z" transform="translate(2.958 3.938)" fill="#a7a7a7"/>
<path id="Vector-2" data-name="Vector" d="M0,0V22.823" transform="translate(17.75 8.121)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-3" data-name="Vector" d="M3.328,0H0" transform="translate(24.406 12.558)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-4" data-name="Vector" d="M4.438,0H0" transform="translate(22.927 16.996)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<g id="Vector-5" data-name="Vector" transform="translate(35.5 35.5) rotate(180)" fill="none" opacity="0">
<path d="M0,0H35.5V35.5H0Z" stroke="none"/>
<path d="M 1 1 L 1 34.5 L 34.5 34.5 L 34.5 1 L 1 1 M 0 0 L 35.5 0 L 35.5 35.5 L 0 35.5 L 0 0 Z" stroke="none" fill="#707070"/>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" width="57" height="57" viewBox="0 0 57 57">
<g id="Group_2008" data-name="Group 2008" transform="translate(-697 -436)">
<text id="صفحه_اصلی" data-name="صفحهاصلی" transform="translate(754 487)" fill="#a7a7a7" font-size="12" font-family="IRANSansX-DemiBold, IRANSansX" font-weight="300"><tspan x="-56.628" y="0">صفحهاصلی</tspan></text>
<g id="vuesax_linear_home-2" data-name="vuesax/linear/home-2" transform="translate(708 436)">
<g id="home-2" transform="translate(0 0)">
<path id="Vector" d="M10.384,1.217,2.411,7.429A7.039,7.039,0,0,0,0,12.34V23.3a6.25,6.25,0,0,0,6.227,6.242H23.356a6.247,6.247,0,0,0,6.227-6.227V12.547a6.987,6.987,0,0,0-2.662-5.1l-9.141-6.4A6.637,6.637,0,0,0,10.384,1.217Z" transform="translate(2.958 2.984)" fill="#a7a7a7"/>
<path id="Vector-2" data-name="Vector" d="M0,4.438V0" transform="translate(17.75 22.173)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-3" data-name="Vector" d="M0,0H35.5V35.5H0Z" fill="none" opacity="0"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" width="35.125" height="35.125" viewBox="0 0 35.125 35.125">
<g id="vuesax_linear_note-2" data-name="vuesax/linear/note-2" transform="translate(-108 -252)">
<g id="note-2" transform="translate(108 252)">
<path id="Vector" d="M21.5,11.618l-1.434,6.118c-1.229,5.283-3.659,7.42-8.225,6.981a15.388,15.388,0,0,1-2.371-.4l-2.459-.585C.909,22.288-.978,19.273.456,13.155L1.89,7.023A15.33,15.33,0,0,1,2.973,3.8C4.685.261,7.6-.69,12.486.466l2.444.571C21.063,2.471,22.936,5.5,21.5,11.618Z" transform="translate(10.199 3.661)" fill="none" stroke="#292d32" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-2" data-name="Vector" d="M19.134,20.914A13.717,13.717,0,0,1,15.7,22.495l-2.312.761c-5.81,1.873-8.869.307-10.757-5.5L.752,11.972C-1.121,6.162.43,3.088,6.241,1.215L8.553.454A14.963,14.963,0,0,1,10.265,0,15.33,15.33,0,0,0,9.182,3.22L7.748,9.352C6.314,15.47,8.2,18.485,14.3,19.934l2.459.585A15.387,15.387,0,0,0,19.134,20.914Z" transform="translate(2.907 7.464)" fill="none" stroke="#292d32" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-3" data-name="Vector" d="M0,0,7.1,1.8" transform="translate(18.499 12.484)" fill="none" stroke="#292d32" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-4" data-name="Vector" d="M0,0,4.244,1.083" transform="translate(19.919 18.148)" fill="none" stroke="#292d32" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
<path id="Vector-5" data-name="Vector" d="M0,0H35.125V35.125H0Z" transform="translate(35.125 35.125) rotate(180)" fill="none" opacity="0"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -8,6 +8,8 @@ import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { user, publicApi } from "../src/redux/actions"; import { user, publicApi } from "../src/redux/actions";
import { useSafeAreaInsets } from 'react-native-safe-area-context';
//components //components
import OrderDetails from "../src/screens/OrderDetails"; import OrderDetails from "../src/screens/OrderDetails";
@ -45,9 +47,11 @@ import Tickets from "../src/screens/Contact/layouts/Tickets";
//style //style
import Colors from "../src/constants/Colors"; import Colors from "../src/constants/Colors";
import fontSize from "../src/constants/fontSize";
const Tab = createBottomTabNavigator(); const Tab = createBottomTabNavigator();
const BottomTabNavigator = ({}) => { const BottomTabNavigator = ({}) => {
const insets = useSafeAreaInsets();
const [headerShown, setHeaderShown] = React.useState(true); const [headerShown, setHeaderShown] = React.useState(true);
React.useEffect(() => { React.useEffect(() => {
setTimeout(() => { setTimeout(() => {
@ -72,18 +76,21 @@ const BottomTabNavigator = ({}) => {
tabBarStyle: { tabBarStyle: {
backgroundColor: Colors.theme1["light"].white, backgroundColor: Colors.theme1["light"].white,
transform: [{ scaleX: -1 }], transform: [{ scaleX: -1 }],
height: 65 + insets.bottom,
}, },
tabBarLabelStyle: { tabBarLabelStyle: {
// fontSize: fontSize.sm, transform: [{ scaleX: -1 }, {translateY : -5}],
// fontFamily: "bold", fontSize: fontSize.xs,
fontFamily: "bold",
}, },
tabBarShowLabel: false, tabBarShowLabel: true,
}} }}
> >
<Tab.Screen <Tab.Screen
name="HomeTab" name="HomeTab"
component={HomeStackScreen} component={HomeStackScreen}
options={{ options={{
title: "خانه", title: "خانه",
tabBarIcon: ({ focused, color }) => tabBarIcon: ({ focused, color }) =>

@ -128,6 +128,35 @@ const Drawer = ({ position, setBoxPosition, user, mobile, theme }) => {
message: "", message: "",
}, },
{
name: "وبلاگ",
route: "Blogs",
icon: (
<Svg
xmlns="http://www.w3.org/2000/svg"
width={35.125}
height={35.125}
style={{ transform : [{scale : 0.8}] }}
>
<G
fill="none"
stroke="#292d32"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
data-name="vuesax/linear/note-2"
>
<Path d="m31.699 15.279-1.434 6.118c-1.229 5.283-3.659 7.42-8.225 6.981a15.388 15.388 0 0 1-2.371-.4l-2.459-.585c-6.102-1.444-7.989-4.459-6.555-10.577l1.434-6.132a15.33 15.33 0 0 1 1.083-3.223c1.712-3.539 4.627-4.49 9.513-3.334l2.444.571c6.133 1.434 8.006 4.463 6.57 10.581Z" />
<Path
data-name="Vector"
d="M22.041 28.378a13.717 13.717 0 0 1-3.434 1.581l-2.312.761c-5.81 1.873-8.869.307-10.757-5.5l-1.879-5.784c-1.873-5.81-.322-8.884 5.489-10.757l2.312-.761a14.963 14.963 0 0 1 1.712-.454 15.33 15.33 0 0 0-1.083 3.22l-1.434 6.132c-1.434 6.118.452 9.133 6.552 10.582l2.459.585a15.387 15.387 0 0 0 2.375.395ZM18.499 12.484l7.1 1.8M19.919 18.148l4.244 1.083"
/>
</G>
</Svg>
),
message: "",
},
{ {
name: "سفارشات", name: "سفارشات",
route: "Orders", route: "Orders",
@ -261,7 +290,7 @@ const Drawer = ({ position, setBoxPosition, user, mobile, theme }) => {
Animated.timing(fadeAnim, { Animated.timing(fadeAnim, {
toValue: 0.5, toValue: 0.5,
duration: 300, duration: 300,
useNativeDriver: true // Add This line useNativeDriver: true, // Add This line
}).start(); }).start();
}, 300); }, 300);
} }
@ -269,7 +298,7 @@ const Drawer = ({ position, setBoxPosition, user, mobile, theme }) => {
Animated.timing(fadeAnim, { Animated.timing(fadeAnim, {
toValue: 0, toValue: 0,
duration: 10, duration: 10,
useNativeDriver: true // Add This line useNativeDriver: true, // Add This line
}).start(); }).start();
} }
}, [position]); }, [position]);
@ -388,7 +417,7 @@ const Drawer = ({ position, setBoxPosition, user, mobile, theme }) => {
onPress={() => onPress={() =>
asyncAwesomeAlert("نتیجه", "این قابلیت در حال توسعه است.", { asyncAwesomeAlert("نتیجه", "این قابلیت در حال توسعه است.", {
showCancelButton: false, showCancelButton: false,
confirmText: "باشه" confirmText: "باشه",
}) })
} }
> >

@ -154,10 +154,10 @@ export const Blog = ({ getInfo, blog, getList, blogs, route, theme }) => {
> >
{blog?.title} {blog?.title}
</Text> </Text>
{console.log( {/* {console.log(
new DomParser()?.parseFromString(blog?.text, "text/html") new DomParser()?.parseFromString(blog?.text, "text/html")
?.childNodes ?.childNodes
)} )} */}
</View> </View>
<Header title={"پیشنهادی "} /> <Header title={"پیشنهادی "} />
{blogs.length && ( {blogs.length && (

@ -38,7 +38,7 @@ function Scan({ theme, route }) {
setScanned(true); setScanned(true);
if (route?.params?.page === "activation") { if (route?.params?.page === "activation") {
navigation.push("QRContent", { data }); navigation.push("QRContent", { data });
}else{ } else {
navigation.push("Activation", { data }); navigation.push("Activation", { data });
} }
}, },

Loading…
Cancel
Save