import React from "react"; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; import { MaterialCommunityIcons } from "@expo/vector-icons"; import AccountNavigator from "./AccountNavigator"; import FeedNavigator from "./FeedNavigator"; import MessagesNavigator from "./MessagesNavigator"; import OfficialMessagesNavigator from "./OfficialMessagesNavigator"; import NewListingButton from "./NewListingButton"; import routes from "./routes"; import SharingDataNavigator from "./SharingDataNavigator"; const Tab = createBottomTabNavigator(); const AppNavigator = () => ( ( ), }} /> ( ), }} /> ({ tabBarButton: () => ( //navigation.goBack(null) navigation.navigate(routes.SHARING_DATA)} /> ), tabBarIcon: ({ color, size }) => ( ), })} /> ( ), }} /> ( ), }} /> ); export default AppNavigator;