2021-02-26 16:05:46 +00:00
|
|
|
import 'react-native-gesture-handler';
|
2021-04-18 20:07:44 +00:00
|
|
|
import React from "react";
|
2021-02-26 16:05:46 +00:00
|
|
|
|
|
|
|
import { createAppContainer } from 'react-navigation';
|
|
|
|
import { createStackNavigator } from "react-navigation-stack";
|
2021-04-18 20:07:44 +00:00
|
|
|
import { MenuProvider } from "react-native-popup-menu";
|
2021-02-26 16:05:46 +00:00
|
|
|
|
|
|
|
import { registerRootComponent } from 'expo';
|
|
|
|
|
2021-03-13 11:24:51 +00:00
|
|
|
import ViewPostJsx from "src/components/pages/view-post";
|
|
|
|
import ViewCommentsJsx from "src/components/pages/view-comments.js";
|
|
|
|
|
2021-03-29 21:51:34 +00:00
|
|
|
import AuthenticateJsx from "src/components/pages/authenticate";
|
2021-02-26 16:05:46 +00:00
|
|
|
import FeedJsx from "src/components/pages/feed";
|
|
|
|
import ProfileJsx, { ViewProfileJsx } from "src/components/pages/profile";
|
|
|
|
import DiscoverJsx from 'src/components/pages/discover';
|
|
|
|
import SearchJsx from 'src/components/pages/discover/search';
|
|
|
|
import ViewHashtagJsx from 'src/components/pages/discover/view-hashtag';
|
2021-04-15 17:43:45 +00:00
|
|
|
import DirectJsx from "src/components/pages/direct";
|
2021-04-15 18:18:39 +00:00
|
|
|
import ConversationJsx, { ComposeJsx } from "src/components/pages/direct/conversation";
|
2021-02-26 16:05:46 +00:00
|
|
|
import NotificationsJsx from 'src/components/pages/profile/notifications';
|
2021-03-23 18:07:20 +00:00
|
|
|
import UserListJsx from "src/components/pages/user-list.js";
|
2021-03-27 12:16:35 +00:00
|
|
|
import SettingsJsx from "src/components/pages/profile/settings.js";
|
2021-02-26 16:05:46 +00:00
|
|
|
|
|
|
|
const Stack = createStackNavigator({
|
2021-03-29 21:51:34 +00:00
|
|
|
Authenticate: { screen: AuthenticateJsx },
|
2021-03-23 18:07:20 +00:00
|
|
|
Feed: { screen: FeedJsx, },
|
|
|
|
Discover: { screen: DiscoverJsx },
|
2021-04-15 17:43:45 +00:00
|
|
|
Direct: { screen: DirectJsx },
|
2021-04-15 18:18:39 +00:00
|
|
|
Compose: { screen: ComposeJsx },
|
2021-04-15 17:43:45 +00:00
|
|
|
Conversation: { screen: ConversationJsx },
|
2021-03-23 18:07:20 +00:00
|
|
|
Notifications: { screen: NotificationsJsx },
|
|
|
|
Profile: { screen: ProfileJsx, },
|
2021-03-27 12:16:35 +00:00
|
|
|
Settings: { screen: SettingsJsx },
|
2021-03-23 18:07:20 +00:00
|
|
|
Search: { screen: SearchJsx },
|
|
|
|
ViewPost: { screen: ViewPostJsx },
|
|
|
|
ViewComments: { screen: ViewCommentsJsx },
|
|
|
|
ViewProfile: { screen: ViewProfileJsx },
|
|
|
|
ViewHashtag: { screen: ViewHashtagJsx },
|
|
|
|
UserList: { screen: UserListJsx }
|
2021-03-13 11:24:51 +00:00
|
|
|
}, {
|
2021-03-29 21:51:34 +00:00
|
|
|
initialRouteKey: "Authenticate",
|
2021-03-23 18:07:20 +00:00
|
|
|
headerMode: "none",
|
|
|
|
navigationOptions: {
|
|
|
|
headerVisible: false
|
|
|
|
}
|
2021-02-26 16:05:46 +00:00
|
|
|
});
|
|
|
|
|
2021-04-18 20:07:44 +00:00
|
|
|
const AppContainer = createAppContainer(Stack);
|
|
|
|
|
|
|
|
const App = (props) => {
|
|
|
|
const providerStyles = {
|
|
|
|
backdrop: {
|
|
|
|
backgroundColor: "black",
|
|
|
|
opacity: 0.5
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
return <MenuProvider style = { providerStyles }>
|
|
|
|
<AppContainer />
|
|
|
|
</MenuProvider>;
|
|
|
|
};
|
2021-02-26 16:05:46 +00:00
|
|
|
|
|
|
|
export default registerRootComponent(App);
|