resin/src/App.js

46 lines
1.6 KiB
JavaScript
Raw Normal View History

2021-02-26 16:05:46 +00:00
import 'react-native-gesture-handler';
import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from "react-navigation-stack";
import { registerRootComponent } from 'expo';
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';
import NotificationsJsx from 'src/components/pages/profile/notifications';
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 },
Feed: { screen: FeedJsx, },
Discover: { screen: DiscoverJsx },
Notifications: { screen: NotificationsJsx },
Profile: { screen: ProfileJsx, },
2021-03-27 12:16:35 +00:00
Settings: { screen: SettingsJsx },
Search: { screen: SearchJsx },
ViewPost: { screen: ViewPostJsx },
ViewComments: { screen: ViewCommentsJsx },
ViewProfile: { screen: ViewProfileJsx },
ViewHashtag: { screen: ViewHashtagJsx },
UserList: { screen: UserListJsx }
}, {
2021-03-29 21:51:34 +00:00
initialRouteKey: "Authenticate",
headerMode: "none",
navigationOptions: {
headerVisible: false
}
2021-02-26 16:05:46 +00:00
});
const App = createAppContainer(Stack);
export default registerRootComponent(App);