SafeAreaView vertical never

This commit is contained in:
diegolmello 2019-08-01 10:54:16 -03:00
parent f7f5f799db
commit 9869706828
26 changed files with 27 additions and 27 deletions

View File

@ -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}

View File

@ -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

View File

@ -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}

View File

@ -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; }}

View File

@ -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}

View File

@ -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' })}

View File

@ -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

View File

@ -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; }}

View File

@ -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}

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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}

View File

@ -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; }}

View File

@ -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}

View File

@ -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')}

View File

@ -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>

View File

@ -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}

View File

@ -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()}

View File

@ -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

View File

@ -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

View File

@ -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}>

View File

@ -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} />

View File

@ -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

View File

@ -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>
);

View File

@ -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}