diff --git a/app/index.js b/app/index.js index 824172707..1e4765b96 100644 --- a/app/index.js +++ b/app/index.js @@ -1,753 +1,41 @@ -import React from 'react'; -import { - View, Linking, BackHandler, ScrollView -} from 'react-native'; -import { createAppContainer, createSwitchNavigator } from 'react-navigation'; -import { createStackNavigator } from 'react-navigation-stack'; -import { createDrawerNavigator } from 'react-navigation-drawer'; -import { AppearanceProvider } from 'react-native-appearance'; -import { Provider } from 'react-redux'; -import PropTypes from 'prop-types'; -import RNUserDefaults from 'rn-user-defaults'; -import Modal from 'react-native-modal'; -import KeyCommands, { KeyCommandsEmitter } from 'react-native-keycommands'; +import * as React from 'react'; +import { Button, View, Text } from 'react-native'; +import { NavigationContainer } from '@react-navigation/native'; +import { createStackNavigator } from '@react-navigation/stack'; +import RNBootSplash from 'react-native-bootsplash'; +RNBootSplash.hide(); -import { - defaultTheme, - newThemeState, - subscribeTheme, - unsubscribeTheme -} from './utils/theme'; -import EventEmitter from './utils/events'; -import { appInit, appInitLocalSettings } from './actions'; -import { deepLinkingOpen } from './actions/deepLinking'; -import Navigation from './lib/Navigation'; -import Sidebar from './views/SidebarView'; -import parseQuery from './lib/methods/helpers/parseQuery'; -import { initializePushNotifications, onNotification } from './notifications/push'; -import store from './lib/createStore'; -import NotificationBadge from './notifications/inApp'; -import { - defaultHeader, onNavigationStateChange, cardStyle, getActiveRouteName -} from './utils/navigation'; -import { loggerConfig, analytics } from './utils/log'; -import Toast from './containers/Toast'; -import { ThemeContext } from './theme'; -import RocketChat, { THEME_PREFERENCES_KEY } from './lib/rocketchat'; -import { MIN_WIDTH_SPLIT_LAYOUT } from './constants/tablet'; -import { - isTablet, isSplited, isIOS, setWidth, supportSystemTheme, isAndroid -} from './utils/deviceInfo'; -import { KEY_COMMAND } from './commands'; -import Tablet, { initTabletNav } from './tablet'; -import sharedStyles from './views/Styles'; -import { SplitContext } from './split'; -import TwoFactor from './containers/TwoFactor'; - -import RoomsListView from './views/RoomsListView'; -import RoomView from './views/RoomView'; -import ScreenLockedView from './views/ScreenLockedView'; -import ChangePasscodeView from './views/ChangePasscodeView'; - -if (isIOS) { - const RNScreens = require('react-native-screens'); - RNScreens.useScreens(); +function HomeScreen({ navigation }) { + return ( + + Home Screen +