import React, { useState } from "react"; import { Image, StyleSheet, TouchableOpacity, View } from "react-native"; import { faCartShopping, faStore } from "@fortawesome/free-solid-svg-icons"; import { faBell, faComment, faComments, faUserCircle, } from "@fortawesome/free-regular-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-native-fontawesome"; const BottomNav = ({ settabActive, activeTab }) => { const tabSwitch = (e) => { settabActive(e); }; return ( tabSwitch("home")} > {activeTab === "home" ? ( ) : ( )} {/* tabSwitch("notif")} > {activeTab === "notif" ? ( ) : ( )} */} tabSwitch("message")} > {activeTab === "message" ? ( ) : ( )} tabSwitch("cart")} > {activeTab === "cart" ? ( ) : ( )} tabSwitch("profile")} > {activeTab === "profile" ? ( ) : ( )} ); }; const styles = StyleSheet.create({ container: { // flex: 1, backgroundColor: "#fff", alignItems: "center", justifyContent: "center", width: "100%", bottom: 0, // position: "fixed", // paddingVertical: 15, paddingBottom:5, boxShadow: "0px 0px 3px 0px rgba(0, 0, 0, 0.25)", }, wrapper: { flexDirection: "row", width: "100%", alignItems: "center", justifyContent: "space-around", margin: "auto", borderTopColor: "#ddd", borderTopWidth: 1, }, button: { padding: 15, // paddingBottom: 25, }, }); export default BottomNav;