SafeAreaView vertical never
This commit is contained in:
parent
f7f5f799db
commit
9869706828
|
@ -127,7 +127,7 @@ export default class AutoTranslateView extends React.Component {
|
|||
render() {
|
||||
const { languages } = this.state;
|
||||
return (
|
||||
<SafeAreaView style={sharedStyles.listSafeArea} testID='auto-translate-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={sharedStyles.listSafeArea} testID='auto-translate-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
<ScrollView
|
||||
{...scrollPersistTaps}
|
||||
|
|
|
@ -333,7 +333,7 @@ export default class CreateChannelView extends React.Component {
|
|||
keyboardVerticalOffset={128}
|
||||
>
|
||||
<StatusBar />
|
||||
<SafeAreaView testID='create-channel-view' style={styles.container} forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView testID='create-channel-view' style={styles.container} forceInset={{ vertical: 'never' }}>
|
||||
<ScrollView {...scrollPersistTaps}>
|
||||
<View style={sharedStyles.separatorVertical}>
|
||||
<TextInput
|
||||
|
|
|
@ -215,7 +215,7 @@ export default class DirectoryView extends React.Component {
|
|||
} = this.state;
|
||||
const { isFederationEnabled } = this.props;
|
||||
return (
|
||||
<SafeAreaView style={styles.safeAreaView} testID='directory-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.safeAreaView} testID='directory-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
<FlatList
|
||||
data={data}
|
||||
|
|
|
@ -96,7 +96,7 @@ export default class ForgotPasswordView extends React.Component {
|
|||
>
|
||||
<StatusBar />
|
||||
<ScrollView {...scrollPersistTaps} contentContainerStyle={sharedStyles.containerScrollView}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='forgot-password-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='forgot-password-view' forceInset={{ vertical: 'never' }}>
|
||||
<Text style={[sharedStyles.loginTitle, sharedStyles.textBold]}>{I18n.t('Forgot_password')}</Text>
|
||||
<TextInput
|
||||
inputRef={(e) => { this.emailInput = e; }}
|
||||
|
|
|
@ -141,7 +141,7 @@ export default class LanguageView extends React.Component {
|
|||
render() {
|
||||
const { saving } = this.state;
|
||||
return (
|
||||
<SafeAreaView style={sharedStyles.listSafeArea} testID='language-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={sharedStyles.listSafeArea} testID='language-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
<FlatList
|
||||
data={LANGUAGES}
|
||||
|
|
|
@ -81,7 +81,7 @@ export default class LegalView extends React.Component {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<SafeAreaView style={styles.container} testID='legal-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.container} testID='legal-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
<ScrollView {...scrollPersistTaps} contentContainerStyle={styles.scroll}>
|
||||
{this.renderItem({ text: 'Terms_of_Service', route: 'terms-of-service', testID: 'legal-terms-button' })}
|
||||
|
|
|
@ -365,7 +365,7 @@ export default class LoginSignupView extends React.Component {
|
|||
return (
|
||||
<ScrollView style={[sharedStyles.containerScrollView, sharedStyles.container, styles.container]} {...scrollPersistTaps}>
|
||||
<StatusBar />
|
||||
<SafeAreaView testID='welcome-view' forceInset={{ bottom: 'never' }} style={styles.safeArea}>
|
||||
<SafeAreaView testID='welcome-view' forceInset={{ vertical: 'never' }} style={styles.safeArea}>
|
||||
{this.renderServices()}
|
||||
{this.renderServicesSeparator()}
|
||||
<Button
|
||||
|
|
|
@ -194,7 +194,7 @@ export default class LoginView extends React.Component {
|
|||
renderTOTP = () => {
|
||||
const { isFetching } = this.props;
|
||||
return (
|
||||
<SafeAreaView style={sharedStyles.container} testID='login-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='login-view' forceInset={{ vertical: 'never' }}>
|
||||
<Text style={[sharedStyles.loginTitle, sharedStyles.textBold, styles.loginTitle]}>{I18n.t('Two_Factor_Authentication')}</Text>
|
||||
<Text style={[sharedStyles.loginSubtitle, sharedStyles.textRegular]}>{I18n.t('Whats_your_2fa')}</Text>
|
||||
<TextInput
|
||||
|
@ -224,7 +224,7 @@ export default class LoginView extends React.Component {
|
|||
Accounts_EmailOrUsernamePlaceholder, Accounts_PasswordPlaceholder, isFetching
|
||||
} = this.props;
|
||||
return (
|
||||
<SafeAreaView style={sharedStyles.container} testID='login-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='login-view' forceInset={{ vertical: 'never' }}>
|
||||
<Text style={[sharedStyles.loginTitle, sharedStyles.textBold]}>{I18n.t('Login')}</Text>
|
||||
<TextInput
|
||||
inputRef={(e) => { this.usernameInput = e; }}
|
||||
|
|
|
@ -252,7 +252,7 @@ export default class MessagesView extends React.Component {
|
|||
}
|
||||
|
||||
return (
|
||||
<SafeAreaView style={styles.list} testID={this.content.testID} forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.list} testID={this.content.testID} forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
<FlatList
|
||||
data={messages}
|
||||
|
|
|
@ -183,7 +183,7 @@ export default class NewMessageView extends React.Component {
|
|||
}
|
||||
|
||||
render = () => (
|
||||
<SafeAreaView style={styles.safeAreaView} testID='new-message-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.safeAreaView} testID='new-message-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
{this.renderList()}
|
||||
</SafeAreaView>
|
||||
|
|
|
@ -164,7 +164,7 @@ export default class NewServerView extends React.Component {
|
|||
>
|
||||
<StatusBar light />
|
||||
<ScrollView {...scrollPersistTaps} contentContainerStyle={sharedStyles.containerScrollView}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='new-server-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='new-server-view' forceInset={{ vertical: 'never' }}>
|
||||
<Image style={styles.image} source={{ uri: 'new_server' }} />
|
||||
<Text style={styles.title}>{I18n.t('Sign_in_your_server')}</Text>
|
||||
<TextInput
|
||||
|
|
|
@ -134,7 +134,7 @@ export default class OnboardingView extends React.Component {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<SafeAreaView style={styles.container} testID='onboarding-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.container} testID='onboarding-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar light />
|
||||
<Image style={styles.onboarding} source={{ uri: 'onboarding' }} fadeDuration={0} />
|
||||
<Text style={styles.title}>{I18n.t('Welcome_to_RocketChat')}</Text>
|
||||
|
|
|
@ -393,7 +393,7 @@ export default class ProfileView extends React.Component {
|
|||
testID='profile-view-list'
|
||||
{...scrollPersistTaps}
|
||||
>
|
||||
<SafeAreaView style={sharedStyles.container} testID='profile-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='profile-view' forceInset={{ vertical: 'never' }}>
|
||||
<View style={styles.avatarContainer} testID='profile-view-avatar'>
|
||||
<Avatar
|
||||
text={username}
|
||||
|
|
|
@ -203,7 +203,7 @@ export default class RegisterView extends React.Component {
|
|||
<KeyboardView contentContainerStyle={sharedStyles.container}>
|
||||
<StatusBar />
|
||||
<ScrollView {...scrollPersistTaps} contentContainerStyle={sharedStyles.containerScrollView}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='register-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='register-view' forceInset={{ vertical: 'never' }}>
|
||||
<Text style={[sharedStyles.loginTitle, sharedStyles.textBold]}>{I18n.t('Sign_Up')}</Text>
|
||||
<TextInput
|
||||
inputRef={(e) => { this.nameInput = e; }}
|
||||
|
|
|
@ -483,7 +483,7 @@ export default class RoomActionsView extends React.Component {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<SafeAreaView style={styles.container} testID='room-actions-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.container} testID='room-actions-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
<SectionList
|
||||
contentContainerStyle={styles.contentContainer}
|
||||
|
|
|
@ -299,7 +299,7 @@ export default class RoomInfoEditView extends React.Component {
|
|||
testID='room-info-edit-view-list'
|
||||
{...scrollPersistTaps}
|
||||
>
|
||||
<SafeAreaView style={sharedStyles.container} testID='room-info-edit-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='room-info-edit-view' forceInset={{ vertical: 'never' }}>
|
||||
<RCTextInput
|
||||
inputRef={(e) => { this.name = e; }}
|
||||
label={I18n.t('Name')}
|
||||
|
|
|
@ -247,7 +247,7 @@ export default class RoomInfoView extends React.Component {
|
|||
return (
|
||||
<ScrollView style={styles.scroll}>
|
||||
<StatusBar />
|
||||
<SafeAreaView style={styles.container} testID='room-info-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.container} testID='room-info-view' forceInset={{ vertical: 'never' }}>
|
||||
<View style={styles.avatarContainer}>
|
||||
{this.renderAvatar(room, roomUser)}
|
||||
<View style={styles.roomTitleContainer}>{ getRoomTitle(room) }</View>
|
||||
|
|
|
@ -279,7 +279,7 @@ export default class RoomMembersView extends React.Component {
|
|||
// return <ActivityIndicator style={styles.loading} />;
|
||||
// }
|
||||
return (
|
||||
<SafeAreaView style={styles.list} testID='room-members-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.list} testID='room-members-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
<FlatList
|
||||
data={filtering ? membersFiltered : members}
|
||||
|
|
|
@ -617,7 +617,7 @@ export default class RoomView extends React.Component {
|
|||
const { rid, t } = room;
|
||||
|
||||
return (
|
||||
<SafeAreaView style={styles.container} testID='room-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.container} testID='room-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
<List rid={rid} t={t} tmid={this.tmid} renderRow={this.renderItem} />
|
||||
{this.renderFooter()}
|
||||
|
|
|
@ -633,7 +633,7 @@ export default class RoomsListView extends React.Component {
|
|||
} = this.props;
|
||||
|
||||
return (
|
||||
<SafeAreaView style={styles.container} testID='rooms-list-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.container} testID='rooms-list-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
{this.renderScroll()}
|
||||
{showSortDropdown
|
||||
|
|
|
@ -132,7 +132,7 @@ export default class SearchMessagesView extends React.Component {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<SafeAreaView style={styles.container} testID='search-messages-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.container} testID='search-messages-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
<View style={styles.searchContainer}>
|
||||
<RCTextInput
|
||||
|
|
|
@ -91,7 +91,7 @@ export default class SelectServerView extends React.Component {
|
|||
return (
|
||||
<SafeAreaView
|
||||
style={styles.container}
|
||||
forceInset={{ bottom: 'never' }}
|
||||
forceInset={{ vertical: 'never' }}
|
||||
>
|
||||
<StatusBar />
|
||||
<View style={styles.list}>
|
||||
|
|
|
@ -270,7 +270,7 @@ export default class SelectedUsersView extends React.Component {
|
|||
render = () => {
|
||||
const { loading } = this.props;
|
||||
return (
|
||||
<SafeAreaView style={styles.safeAreaView} testID='select-users-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.safeAreaView} testID='select-users-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
{this.renderList()}
|
||||
<Loading visible={loading} />
|
||||
|
|
|
@ -109,7 +109,7 @@ export default class SetUsernameView extends React.Component {
|
|||
<KeyboardView contentContainerStyle={sharedStyles.container}>
|
||||
<StatusBar />
|
||||
<ScrollView {...scrollPersistTaps} contentContainerStyle={sharedStyles.containerScrollView}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='set-username-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={sharedStyles.container} testID='set-username-view' forceInset={{ vertical: 'never' }}>
|
||||
<Text style={[sharedStyles.loginTitle, sharedStyles.textBold, styles.loginTitle]}>{I18n.t('Username')}</Text>
|
||||
<Text style={[sharedStyles.loginSubtitle, sharedStyles.textRegular]}>{I18n.t('Set_username_subtitle')}</Text>
|
||||
<TextInput
|
||||
|
|
|
@ -486,7 +486,7 @@ export default class ShareListView extends React.Component {
|
|||
render() {
|
||||
const showError = !this.canUploadFile();
|
||||
return (
|
||||
<SafeAreaView style={styles.container} forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.container} forceInset={{ vertical: 'never' }}>
|
||||
{ showError ? this.renderError() : this.renderScrollView() }
|
||||
</SafeAreaView>
|
||||
);
|
||||
|
|
|
@ -249,7 +249,7 @@ export default class ThreadMessagesView extends React.Component {
|
|||
}
|
||||
|
||||
return (
|
||||
<SafeAreaView style={styles.list} testID='thread-messages-view' forceInset={{ bottom: 'never' }}>
|
||||
<SafeAreaView style={styles.list} testID='thread-messages-view' forceInset={{ vertical: 'never' }}>
|
||||
<StatusBar />
|
||||
<FlatList
|
||||
data={messages}
|
||||
|
|
Loading…
Reference in New Issue