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