diff --git a/app/index.js b/app/index.js
index de6ddb957..526b54b2b 100644
--- a/app/index.js
+++ b/app/index.js
@@ -1,3 +1,4 @@
+/* eslint-disable */
import React from 'react';
import { Linking } from 'react-native';
import { AppearanceProvider } from 'react-native-appearance';
@@ -27,7 +28,7 @@ import {
isTablet, isIOS, setWidth, supportSystemTheme
} from './utils/deviceInfo';
import { KEY_COMMAND } from './commands';
-import Tablet, { initTabletNav } from './tablet';
+// import Tablet, { initTabletNav } from './tablet.js__';
import { SplitContext } from './split';
import AppContainer from './AppContainer';
import TwoFactor from './containers/TwoFactor';
@@ -65,9 +66,9 @@ export default class Root extends React.Component {
darkLevel: 'dark'
}
};
- if (isTablet) {
- this.initTablet();
- }
+ // if (isTablet) {
+ // this.initTablet();
+ // }
}
componentDidMount() {
@@ -129,14 +130,14 @@ export default class Root extends React.Component {
});
}
- initTablet = async() => {
- initTabletNav(args => this.setState(args));
- await KeyCommands.setKeyCommands([]);
- this.onKeyCommands = KeyCommandsEmitter.addListener(
- 'onKeyCommand',
- command => EventEmitter.emit(KEY_COMMAND, { event: command })
- );
- }
+ // initTablet = async() => {
+ // initTabletNav(args => this.setState(args));
+ // await KeyCommands.setKeyCommands([]);
+ // this.onKeyCommands = KeyCommandsEmitter.addListener(
+ // 'onKeyCommand',
+ // command => EventEmitter.emit(KEY_COMMAND, { event: command })
+ // );
+ // }
initCrashReport = () => {
RocketChat.getAllowCrashReport()
@@ -163,23 +164,23 @@ export default class Root extends React.Component {
let content = ;
- if (isTablet) {
- const { inside, showModal } = this.state;
- content = (
-
-
- {content}
-
-
- );
- }
+ // if (isTablet) {
+ // const { inside, showModal } = this.state;
+ // content = (
+ //
+ //
+ // {content}
+ //
+ //
+ // );
+ // }
return (
diff --git a/app/sagas/login.js b/app/sagas/login.js
index 635d82edc..587b9b7ba 100644
--- a/app/sagas/login.js
+++ b/app/sagas/login.js
@@ -7,7 +7,9 @@ import moment from 'moment';
import 'moment/min/locales';
import * as types from '../actions/actionsTypes';
-import { appStart, ROOT_SET_USERNAME, ROOT_INSIDE, ROOT_LOADING, ROOT_OUTSIDE } from '../actions/app';
+import {
+ appStart, ROOT_SET_USERNAME, ROOT_INSIDE, ROOT_LOADING, ROOT_OUTSIDE
+} from '../actions/app';
import { serverFinishAdd, selectServerRequest } from '../actions/server';
import {
loginFailure, loginSuccess, setUser, logout
diff --git a/app/share.js b/app/share.js
index 5cc2b40c9..77788dc82 100644
--- a/app/share.js
+++ b/app/share.js
@@ -1,5 +1,4 @@
-import React, { useState, useContext } from 'react';
-import { View } from 'react-native';
+import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import { NavigationContainer } from '@react-navigation/native';
import { AppearanceProvider } from 'react-native-appearance';
diff --git a/app/tablet.js b/app/tablet.js__
similarity index 100%
rename from app/tablet.js
rename to app/tablet.js__
diff --git a/app/views/AuthenticationWebView.js b/app/views/AuthenticationWebView.js
index 67df3f44d..311fcd299 100644
--- a/app/views/AuthenticationWebView.js
+++ b/app/views/AuthenticationWebView.js
@@ -10,7 +10,7 @@ import StatusBar from '../containers/StatusBar';
import ActivityIndicator from '../containers/ActivityIndicator';
import { withTheme } from '../theme';
import debounce from '../utils/debounce';
-import { LegalButton, CloseModalButton } from '../containers/HeaderButton';
+import { CloseModalButton } from '../containers/HeaderButton';
const userAgent = isIOS
? 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1'
diff --git a/app/views/DefaultBrowserView.js b/app/views/DefaultBrowserView.js
index 2446f65a2..3148952ae 100644
--- a/app/views/DefaultBrowserView.js
+++ b/app/views/DefaultBrowserView.js
@@ -6,7 +6,6 @@ import {
import RNUserDefaults from 'rn-user-defaults';
import I18n from '../i18n';
-import { themedHeader } from '../utils/navigation';
import { withTheme } from '../theme';
import { themes } from '../constants/colors';
import sharedStyles from './Styles';
diff --git a/app/views/RoomView/Header/RoomHeaderLeft.js b/app/views/RoomView/Header/RoomHeaderLeft.js
index 03de94962..81d525456 100644
--- a/app/views/RoomView/Header/RoomHeaderLeft.js
+++ b/app/views/RoomView/Header/RoomHeaderLeft.js
@@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
import { StyleSheet } from 'react-native';
import { HeaderBackButton } from '@react-navigation/stack';
-import { isIOS } from '../../../utils/deviceInfo';
import { themes } from '../../../constants/colors';
import Avatar from '../../../containers/Avatar';
diff --git a/app/views/ScreenLockConfigView.js b/app/views/ScreenLockConfigView.js
index 3a79299d8..6767ba669 100644
--- a/app/views/ScreenLockConfigView.js
+++ b/app/views/ScreenLockConfigView.js
@@ -4,7 +4,6 @@ import { StyleSheet, Switch, ScrollView } from 'react-native';
import { connect } from 'react-redux';
import I18n from '../i18n';
-import { themedHeader } from '../utils/navigation';
import { withTheme } from '../theme';
import { themes, SWITCH_TRACK_COLOR } from '../constants/colors';
import StatusBar from '../containers/StatusBar';
diff --git a/app/views/ThemeView.js b/app/views/ThemeView.js
index f11a040b4..d8cd96902 100644
--- a/app/views/ThemeView.js
+++ b/app/views/ThemeView.js
@@ -6,7 +6,6 @@ import {
import RNUserDefaults from 'rn-user-defaults';
import I18n from '../i18n';
-import { themedHeader } from '../utils/navigation';
import { withTheme } from '../theme';
import { themes } from '../constants/colors';
import sharedStyles from './Styles';
diff --git a/storybook/stories/RoomViewHeader.js b/storybook/stories/RoomViewHeader.js
index dc28ad6f9..cce19f675 100644
--- a/storybook/stories/RoomViewHeader.js
+++ b/storybook/stories/RoomViewHeader.js
@@ -1,6 +1,6 @@
import React from 'react';
import { ScrollView, View, StyleSheet } from 'react-native';
-import { HeaderBackButton } from 'react-navigation-stack';
+import { HeaderBackButton } from '@react-navigation/stack';
import HeaderComponent from '../../app/views/RoomView/Header/Header';
// import { CustomHeaderButtons, Item } from '../../app/containers/HeaderButton';