|
@ -9,14 +9,21 @@ import ForecastNavigator from "./ForecastNavigator"; |
|
|
import NewListingButton from "./NewListingButton"; |
|
|
import NewListingButton from "./NewListingButton"; |
|
|
import SharingDataOptionsNavigator from "./SharingDataOptionsNavigator"; |
|
|
import SharingDataOptionsNavigator from "./SharingDataOptionsNavigator"; |
|
|
import { NavigationContainer } from "@react-navigation/native"; |
|
|
import { NavigationContainer } from "@react-navigation/native"; |
|
|
import {createStackNavigator} from "@react-navigation/stack"; |
|
|
|
|
|
|
|
|
import { createStackNavigator } from "@react-navigation/stack"; |
|
|
|
|
|
import Abbout from "../screens/Abbout"; |
|
|
|
|
|
import colors from "../config/colors"; |
|
|
|
|
|
|
|
|
const Tab = createBottomTabNavigator(); |
|
|
const Tab = createBottomTabNavigator(); |
|
|
const Stack = createStackNavigator(); |
|
|
const Stack = createStackNavigator(); |
|
|
|
|
|
|
|
|
function tabScreens() { |
|
|
function tabScreens() { |
|
|
return ( |
|
|
return ( |
|
|
<Tab.Navigator style={{ backgroundColor: "white" }}> |
|
|
|
|
|
|
|
|
<Tab.Navigator |
|
|
|
|
|
style={{ backgroundColor: "black" }} |
|
|
|
|
|
tabBarOptions={{ |
|
|
|
|
|
activeTintColor: colors.primary, |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
<Tab.Screen |
|
|
<Tab.Screen |
|
|
name="Home" |
|
|
name="Home" |
|
|
component={FeedNavigator} |
|
|
component={FeedNavigator} |
|
@ -49,42 +56,22 @@ function tabScreens() { |
|
|
), |
|
|
), |
|
|
})} |
|
|
})} |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<Tab.Screen |
|
|
<Tab.Screen |
|
|
name="Previsão" |
|
|
|
|
|
component={ForecastNavigator} |
|
|
|
|
|
|
|
|
name="Perfil" |
|
|
|
|
|
component={AccountNavigator} |
|
|
options={{ |
|
|
options={{ |
|
|
tabBarIcon: ({ color, size }) => ( |
|
|
tabBarIcon: ({ color, size }) => ( |
|
|
<MaterialCommunityIcons |
|
|
|
|
|
name="check-circle" |
|
|
|
|
|
color={color} |
|
|
|
|
|
size={size} |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<MaterialCommunityIcons name="account" color={color} size={size} /> |
|
|
), |
|
|
), |
|
|
}} |
|
|
}} |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
{/* <Tab.Screen */} |
|
|
|
|
|
{/* name="Notificação" */} |
|
|
|
|
|
{/* component={MessagesNavigator} */} |
|
|
|
|
|
{/* options={{ */} |
|
|
|
|
|
{/* tabBarIcon: ({ color, size }) => ( */} |
|
|
|
|
|
{/* <MaterialCommunityIcons */} |
|
|
|
|
|
{/* name="bell" */} |
|
|
|
|
|
{/* color={color} */} |
|
|
|
|
|
{/* size={size} */} |
|
|
|
|
|
{/* /> */} |
|
|
|
|
|
{/* ), */} |
|
|
|
|
|
{/* }} */} |
|
|
|
|
|
{/* /> */} |
|
|
|
|
|
|
|
|
|
|
|
</Tab.Navigator> |
|
|
</Tab.Navigator> |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const AppNavigator = () => ( |
|
|
const AppNavigator = () => ( |
|
|
<NavigationContainer |
|
|
|
|
|
independent={true} |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
<NavigationContainer independent={true}> |
|
|
<Stack.Navigator> |
|
|
<Stack.Navigator> |
|
|
<Stack.Screen |
|
|
<Stack.Screen |
|
|
name="tab" |
|
|
name="tab" |
|
@ -93,17 +80,19 @@ const AppNavigator = () => ( |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<Stack.Screen |
|
|
<Stack.Screen |
|
|
name="Perfil" |
|
|
|
|
|
component={AccountNavigator} |
|
|
|
|
|
|
|
|
name="Abbout" |
|
|
|
|
|
component={Abbout} |
|
|
options={{ |
|
|
options={{ |
|
|
headerShown: false, |
|
|
|
|
|
|
|
|
title: "Sobre", |
|
|
tabBarIcon: ({ color, size }) => ( |
|
|
tabBarIcon: ({ color, size }) => ( |
|
|
<MaterialCommunityIcons name="account" color={color} size={size} /> |
|
|
|
|
|
|
|
|
<MaterialCommunityIcons |
|
|
|
|
|
name="information-outline" |
|
|
|
|
|
color={color} |
|
|
|
|
|
size={size} |
|
|
|
|
|
/> |
|
|
), |
|
|
), |
|
|
}} |
|
|
}} |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Stack.Navigator> |
|
|
</Stack.Navigator> |
|
|
</NavigationContainer> |
|
|
</NavigationContainer> |
|
|
); |
|
|
); |
|
|