From 7ec9df4452147bf768932d4f81b3a7d08d80ebd7 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Tue, 15 Mar 2022 14:57:35 +0330 Subject: [PATCH] reza changed drawer icons --- src/components/Drawer.js | 141 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 133 insertions(+), 8 deletions(-) diff --git a/src/components/Drawer.js b/src/components/Drawer.js index 707afe9..22bcd12 100644 --- a/src/components/Drawer.js +++ b/src/components/Drawer.js @@ -15,7 +15,7 @@ import { useNavigation } from "@react-navigation/native"; import { Ionicons, AntDesign } from "@expo/vector-icons"; import { connect } from "react-redux"; import { user } from "../redux/actions"; -import Svg, { Path } from "react-native-svg"; +import Svg, { Path, G } from "react-native-svg"; //style import tw from "tailwind-rn"; @@ -43,42 +43,164 @@ const Drawer = ({ position, setBoxPosition, user, mobile }) => { { name: "صفحه اصلی", route: "Home", - icon: , + icon: ( + + + + + + + ), toast: "", message: "", }, { name: "فعال سازی", route: "Activation", - icon: , + icon: ( + + + + + + + ), toast: "", message: "", }, { name: "واقعیت افزوده", route: "AR", - icon: , + icon: ( + + + + + + + ), toast: "", message: "", }, { name: "سفارشات", route: "Orders", - icon: , + icon: ( + + + + + ), toast: "", message: "", }, { name: "سوالات متداول", route: "Faq", - icon: , + icon: ( + + + + + + + ), toast: "", message: "", }, { name: "تماس با ما", route: "Contact", - icon: , + icon: ( + + + + + + + ), toast: "", message: "", }, @@ -206,7 +328,10 @@ const Drawer = ({ position, setBoxPosition, user, mobile }) => { xmlns="http://www.w3.org/2000/svg" width={24} height={24} - style={{ transform: [{ rotate: dropdown ? "90deg" : "-90deg" }], padding : 10 }} + style={{ + transform: [{ rotate: dropdown ? "90deg" : "-90deg" }], + padding: 10, + }} onPress={() => animateDropdown()} >