|
|
@ -5,13 +5,12 @@ import { MaterialCommunityIcons } from "@expo/vector-icons"; |
|
|
|
import AccountNavigator from "./AccountNavigator"; |
|
|
|
import FeedNavigator from "./FeedNavigator"; |
|
|
|
import MessagesNavigator from "./MessagesNavigator"; |
|
|
|
import OfficialMessagesNavigator from "./OfficialMessagesNavigator"; |
|
|
|
import ForecastNavigator from "./ForecastNavigator"; |
|
|
|
import NewListingButton from "./NewListingButton"; |
|
|
|
import SharingDataOptionsNavigator from "./SharingDataOptionsNavigator"; |
|
|
|
|
|
|
|
const Tab = createBottomTabNavigator(); |
|
|
|
|
|
|
|
|
|
|
|
const AppNavigator = () => ( |
|
|
|
<Tab.Navigator style={{ backgroundColor: "white" }}> |
|
|
|
<Tab.Screen |
|
|
@ -24,8 +23,8 @@ const AppNavigator = () => ( |
|
|
|
}} |
|
|
|
/> |
|
|
|
<Tab.Screen |
|
|
|
name="Oficial" |
|
|
|
component={OfficialMessagesNavigator} |
|
|
|
name="Previsão" |
|
|
|
component={ForecastNavigator} |
|
|
|
options={{ |
|
|
|
tabBarIcon: ({ color, size }) => ( |
|
|
|
<MaterialCommunityIcons |
|
|
@ -47,7 +46,8 @@ const AppNavigator = () => ( |
|
|
|
navigation.reset({ |
|
|
|
index: 0, |
|
|
|
routes: [{ name: "SharingData" }], |
|
|
|
})} |
|
|
|
}) |
|
|
|
} |
|
|
|
/> |
|
|
|
), |
|
|
|
tabBarIcon: ({ color, size }) => ( |
|
|
|