diff --git a/app/containers/LoginServices.js b/app/containers/LoginServices.js
index 9bedbed87..b56929033 100644
--- a/app/containers/LoginServices.js
+++ b/app/containers/LoginServices.js
@@ -5,7 +5,6 @@ import {
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Base64 } from 'js-base64';
-import { withNavigation } from '@react-navigation/compat';
import { withTheme } from '../theme';
import sharedStyles from '../views/Styles';
@@ -361,4 +360,4 @@ const mapDispatchToProps = dispatch => ({
loginRequest: params => dispatch(loginRequestAction(params))
});
-export default connect(mapStateToProps, mapDispatchToProps)(withTheme(withNavigation(LoginServices)));
+export default connect(mapStateToProps, mapDispatchToProps)(withTheme(LoginServices));
diff --git a/app/views/LoginView.js b/app/views/LoginView.js
index 971f950d0..289cde330 100644
--- a/app/views/LoginView.js
+++ b/app/views/LoginView.js
@@ -13,7 +13,6 @@ import I18n from '../i18n';
import { LegalButton } from '../containers/HeaderButton';
import { themes } from '../constants/colors';
import { withTheme } from '../theme';
-import { themedHeader } from '../utils/navigation';
import FormContainer, { FormContainerInner } from '../containers/FormContainer';
import TextInput from '../containers/TextInput';
import { loginRequest as loginRequestAction } from '../actions/login';
@@ -195,11 +194,11 @@ class LoginView extends React.Component {
}
render() {
- const { Accounts_ShowFormLogin, theme } = this.props;
+ const { Accounts_ShowFormLogin, theme, navigation } = this.props;
return (
-
+
{this.renderUserForm()}
diff --git a/app/views/RegisterView.js b/app/views/RegisterView.js
index 77995d57d..dc4b898db 100644
--- a/app/views/RegisterView.js
+++ b/app/views/RegisterView.js
@@ -13,7 +13,6 @@ import I18n from '../i18n';
import { LegalButton } from '../containers/HeaderButton';
import { themes } from '../constants/colors';
import { withTheme } from '../theme';
-import { themedHeader } from '../utils/navigation';
import FormContainer, { FormContainerInner } from '../containers/FormContainer';
import TextInput from '../containers/TextInput';
import isValidEmail from '../utils/isValidEmail';
@@ -224,11 +223,11 @@ class RegisterView extends React.Component {
render() {
const { saving } = this.state;
- const { theme, showLoginButton } = this.props;
+ const { theme, showLoginButton, navigation } = this.props;
return (
-
+
{I18n.t('Sign_Up')}
({
appStart: params => dispatch(appStartAction(params))
});
-export default withNavigation(connect(mapStateToProps, mapDispatchToProps)(withTheme(withSplit(ServerDropdown))));
+export default connect(mapStateToProps, mapDispatchToProps)(withTheme(withSplit(ServerDropdown)));
diff --git a/app/views/RoomsListView/index.js b/app/views/RoomsListView/index.js
index 340d5cf8c..e529ee18e 100644
--- a/app/views/RoomsListView/index.js
+++ b/app/views/RoomsListView/index.js
@@ -830,7 +830,8 @@ class RoomsListView extends React.Component {
showUnread,
showServerDropdown,
showSortDropdown,
- theme
+ theme,
+ navigation
} = this.props;
return (
@@ -846,7 +847,7 @@ class RoomsListView extends React.Component {
showUnread={showUnread}
/>
) : null}
- {showServerDropdown ? : null}
+ {showServerDropdown ? : null}
);
};
diff --git a/package.json b/package.json
index 90b4bf65f..77f5319df 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,6 @@
"@react-native-community/datetimepicker": "2.3.2",
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/slider": "2.0.9",
- "@react-navigation/compat": "^5.1.23",
"@react-navigation/drawer": "^5.7.7",
"@react-navigation/native": "^5.4.2",
"@react-navigation/stack": "^5.3.9",
diff --git a/yarn.lock b/yarn.lock
index 5574eeda0..a7c2f16ea 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1764,11 +1764,6 @@
resolved "https://registry.yarnpkg.com/@react-native-community/viewpager/-/viewpager-2.0.2.tgz#622b190294b1310c4825c98daeaee1c8443f7124"
integrity sha512-CKVhIZdX/Cmb80muog8sKpi5vM8npwFp4tx4Dj1IvTBidZweuO22+VH2rDOj7E0LzdV9IYRJ4FGBwcPBD2qUrQ==
-"@react-navigation/compat@^5.1.23":
- version "5.1.23"
- resolved "https://registry.yarnpkg.com/@react-navigation/compat/-/compat-5.1.23.tgz#2e43727815919c38ef7bd198cdbf0ca08ec85599"
- integrity sha512-JczqRNZujNcz32SsNJeBEcMatsQix/9MIPOXZcAnmUV8UxYpcXt8NKD0Us60evqVc8pZDTV3vCLvAOkOY7OxeA==
-
"@react-navigation/core@^5.8.1":
version "5.8.1"
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-5.8.1.tgz#4f0d744a10eec7dc8bfad2901eec5fb9623b0972"