|
|
@ -7,14 +7,13 @@ import FeedNavigator from "./FeedNavigator"; |
|
|
|
import MessagesNavigator from "./MessagesNavigator"; |
|
|
|
import OfficialMessagesNavigator from "./OfficialMessagesNavigator"; |
|
|
|
import NewListingButton from "./NewListingButton"; |
|
|
|
import routes from "./routes"; |
|
|
|
import SharingDataNavigator from "./SharingDataNavigator"; |
|
|
|
import SharingDataOptionsNavigator from "./SharingDataOptionsNavigator"; |
|
|
|
|
|
|
|
const Tab = createBottomTabNavigator(); |
|
|
|
|
|
|
|
|
|
|
|
const AppNavigator = () => ( |
|
|
|
<Tab.Navigator style={{backgroundColor: "white"}}> |
|
|
|
<Tab.Navigator style={{ backgroundColor: "white" }}> |
|
|
|
<Tab.Screen |
|
|
|
name="Home" |
|
|
|
component={FeedNavigator} |
|
|
@ -45,9 +44,10 @@ const AppNavigator = () => ( |
|
|
|
tabBarButton: () => ( |
|
|
|
<NewListingButton |
|
|
|
onPress={() => |
|
|
|
//navigation.goBack(null)
|
|
|
|
navigation.navigate(routes.SHARING_DATA)} |
|
|
|
|
|
|
|
navigation.reset({ |
|
|
|
index: 0, |
|
|
|
routes: [{ name: "SharingData" }], |
|
|
|
})} |
|
|
|
/> |
|
|
|
), |
|
|
|
tabBarIcon: ({ color, size }) => ( |
|
|
|