From 796c82a9669ac1a3a68a1398b84e7ad3e7e8d863 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 21 May 2020 11:08:53 -0300 Subject: [PATCH] compiling --- app/containers/FormContainer.js | 4 +- app/containers/LoginServices.js | 2 +- app/index.js | 286 ++++++- app/index.js_ | 753 ------------------ app/lib/ModalNavigation.js | 8 +- app/lib/Navigation.js | 10 +- app/lib/ShareNavigation.js | 2 +- app/share.js | 179 +++++ app/share.js_ | 135 ---- app/{split.js_ => split.js} | 0 app/stacks/InsideStack.js | 300 +++++++ app/stacks/OutsideStack.js | 84 ++ app/{tablet.js_ => tablet.js} | 121 ++- app/views/AdminPanelView/index.js | 2 +- app/views/AutoTranslateView/index.js | 4 +- app/views/CreateChannelView.js | 4 +- app/views/CreateDiscussionView/index.js | 4 +- app/views/DefaultBrowserView.js | 4 +- app/views/DirectoryView/index.js | 4 +- app/views/InviteUsersEditView/index.js | 4 +- app/views/InviteUsersView/index.js | 4 +- app/views/LanguageView/index.js | 4 +- app/views/LegalView.js | 4 +- app/views/LivechatEditView.js | 4 +- app/views/MessagesView/index.js | 4 +- app/views/NewMessageView.js | 4 +- .../NotificationPreferencesView/index.js | 4 +- app/views/ProfileView/index.js | 22 +- app/views/ReadReceiptView/index.js | 4 +- app/views/RoomActionsView/index.js | 4 +- app/views/RoomInfoEditView/index.js | 4 +- app/views/RoomInfoView/index.js | 4 +- app/views/RoomMembersView/index.js | 4 +- app/views/RoomView/Header/RoomHeaderLeft.js | 19 +- app/views/RoomView/index.js | 4 +- app/views/RoomsListView/ServerDropdown.js | 2 +- app/views/RoomsListView/index.js | 5 +- app/views/ScreenLockConfigView.js | 4 +- app/views/SearchMessagesView/index.js | 4 +- app/views/SelectServerView.js | 4 +- app/views/SelectedUsersView.js | 4 +- app/views/SetUsernameView.js | 4 +- app/views/SettingsView/index.js | 4 +- app/views/ShareListView/index.js | 4 +- app/views/StatusView.js | 4 +- app/views/ThemeView.js | 4 +- app/views/ThreadMessagesView/index.js | 4 +- package.json | 2 + yarn.lock | 13 + 49 files changed, 988 insertions(+), 1077 deletions(-) delete mode 100644 app/index.js_ create mode 100644 app/share.js delete mode 100644 app/share.js_ rename app/{split.js_ => split.js} (100%) create mode 100644 app/stacks/InsideStack.js create mode 100644 app/stacks/OutsideStack.js rename app/{tablet.js_ => tablet.js} (63%) diff --git a/app/containers/FormContainer.js b/app/containers/FormContainer.js index 763e98df6..7938a5f9e 100644 --- a/app/containers/FormContainer.js +++ b/app/containers/FormContainer.js @@ -1,7 +1,7 @@ import React from 'react'; -import { ScrollView, StyleSheet, View } from 'react-native'; +import { ScrollView, StyleSheet, View, SafeAreaView } from 'react-native'; import PropTypes from 'prop-types'; -import { SafeAreaView } from 'react-navigation'; +// import { SafeAreaView } from 'react-navigation'; import { themes } from '../constants/colors'; import sharedStyles from '../views/Styles'; diff --git a/app/containers/LoginServices.js b/app/containers/LoginServices.js index 2cf06d327..9bedbed87 100644 --- a/app/containers/LoginServices.js +++ b/app/containers/LoginServices.js @@ -5,7 +5,7 @@ import { import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Base64 } from 'js-base64'; -import { withNavigation } from 'react-navigation'; +import { withNavigation } from '@react-navigation/compat'; import { withTheme } from '../theme'; import sharedStyles from '../views/Styles'; diff --git a/app/index.js b/app/index.js index 1e4765b96..f4a84363f 100644 --- a/app/index.js +++ b/app/index.js @@ -1,41 +1,261 @@ -import * as React from 'react'; -import { Button, View, Text } from 'react-native'; +import React, { useState } from 'react'; +import { Linking } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; -import RNBootSplash from 'react-native-bootsplash'; -RNBootSplash.hide(); +import { AppearanceProvider } from 'react-native-appearance'; +import { Provider } from 'react-redux'; +import RNUserDefaults from 'rn-user-defaults'; +import KeyCommands, { KeyCommandsEmitter } from 'react-native-keycommands'; +import RNScreens from 'react-native-screens'; -function HomeScreen({ navigation }) { - return ( - - Home Screen -