MM-39337 set allowFontScaling to TextInput components (#5751)

This commit is contained in:
Elias Nahum 2021-10-14 13:42:09 -03:00 committed by GitHub
parent ebb00a205c
commit f8baaf8505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 28 additions and 0 deletions

View file

@ -74,6 +74,7 @@ exports[`EditChannelInfo should match snapshot 1`] = `
}
>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
autoCapitalize="none"
autoCorrect={false}
disableFullscreenUI={true}
@ -140,6 +141,7 @@ exports[`EditChannelInfo should match snapshot 1`] = `
}
>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
autoCapitalize="none"
autoCorrect={false}
blurOnSubmit={false}
@ -229,6 +231,7 @@ exports[`EditChannelInfo should match snapshot 1`] = `
}
>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
autoCapitalize="none"
autoCorrect={false}
blurOnSubmit={false}

View file

@ -334,6 +334,7 @@ export default class EditChannelInfo extends PureComponent {
</View>
<View style={style.inputContainer}>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
testID='edit_channel_info.name.input'
ref={this.nameInput}
value={displayName}
@ -364,6 +365,7 @@ export default class EditChannelInfo extends PureComponent {
</View>
<View style={style.inputContainer}>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
testID='edit_channel_info.purpose.input'
ref={this.purposeInput}
value={purpose}
@ -407,6 +409,7 @@ export default class EditChannelInfo extends PureComponent {
</View>
<View style={style.inputContainer}>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
testID='edit_channel_info.header.input'
ref={this.headerInput}
value={header}

View file

@ -286,6 +286,7 @@ exports[`PostDraft Should render the DraftInput 1`] = `
<View>
<PasteInput
accessible={true}
allowFontScaling={true}
autoCapitalize="sentences"
autoCompleteType="off"
blurOnSubmit={false}

View file

@ -2,6 +2,7 @@
exports[`PostInput should match, full snapshot 1`] = `
<ForwardRef
allowFontScaling={true}
autoCompleteType="off"
blurOnSubmit={false}
disableCopyPaste={false}

View file

@ -298,6 +298,7 @@ export default class PostInput extends PureComponent {
return (
<PasteableTextInput
allowFontScaling={true}
testID={testID}
ref={this.input}
disableCopyPaste={this.state.disableCopyAndPaste}

View file

@ -33,6 +33,7 @@ exports[`SearchBar should match snapshot 1`] = `
}
>
<ForwardRef(Themed.SearchBar)
allowFontScaling={true}
autoCapitalize="auto-capitalize"
autoCorrect={false}
autoFocus={true}

View file

@ -323,6 +323,7 @@ export default class Search extends PureComponent {
]}
>
<SearchBar
allowFontScaling={true}
testID={searchInputTestID}
autoCapitalize={this.props.autoCapitalize}
autoCorrect={false}

View file

@ -185,6 +185,7 @@ export default class TextSetting extends PureComponent {
<View style={[style.inputContainer, noediting]}>
<View>
<TextInput
allowFontScaling={true}
value={value}
placeholder={placeholder}
placeholderTextColor={changeOpacity(theme.centerChannelColor, 0.5)}

View file

@ -67,6 +67,7 @@ export default class Code extends React.PureComponent {
if (Platform.OS === 'ios') {
textComponent = (
<TextInput
allowFontScaling={true}
editable={false}
multiline={true}
value={this.props.content}

View file

@ -404,6 +404,7 @@ class CustomStatusModal extends NavigationComponent<Props, State> {
const customStatusInput = (
<View style={style.inputContainer}>
<TextInput
allowFontScaling={true}
testID='custom_status.input'
autoCapitalize='none'
autoCorrect={false}

View file

@ -37,6 +37,7 @@ exports[`EditPost should match snapshot 1`] = `
}
>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
blurOnSubmit={false}
disableFullscreenUI={true}
keyboardAppearance="light"

View file

@ -272,6 +272,7 @@ export default class EditPost extends PureComponent {
{displayError}
<View style={[inputContainerStyle, {height}]}>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
testID='edit_post.message.input'
ref={this.messageRef}
value={message}

View file

@ -148,6 +148,7 @@ exports[`ForgotPassword should match snapshot 1`] = `
}
/>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
autoCorrect={false}
blurOnSubmit={false}
@ -269,6 +270,7 @@ exports[`ForgotPassword snapshot for error on failure of email regex 1`] = `
}
/>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
autoCorrect={false}
blurOnSubmit={false}

View file

@ -121,6 +121,7 @@ export default class ForgotPassword extends PureComponent {
defaultMessage='To reset your password, enter the email address you used to sign up'
/>
<TextInput
allowFontScaling={true}
ref={this.emailIdRef}
style={GlobalStyles.inputBox}
onChangeText={this.changeEmail}

View file

@ -395,6 +395,7 @@ export default class Login extends PureComponent {
error={this.state.error}
/>
<TextInput
allowFontScaling={true}
testID='login.username.input'
autoCapitalize='none'
autoCorrect={false}
@ -411,6 +412,7 @@ export default class Login extends PureComponent {
underlineColorAndroid='transparent'
/>
<TextInput
allowFontScaling={true}
testID='login.password.input'
autoCapitalize='none'
autoCorrect={false}

View file

@ -162,6 +162,7 @@ export default class Mfa extends PureComponent {
error={this.state.error}
/>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
ref={this.inputRef}
value={this.state.token}
onChangeText={this.handleInput}

View file

@ -490,6 +490,7 @@ export default class SelectServer extends PureComponent {
/>
</View>
<TextInput
allowFontScaling={true}
testID='select_server.server_url.input'
ref={this.inputRef}
value={url}

View file

@ -153,6 +153,7 @@ const NotificationSettingsAutoResponder = ({currentUser, currentUserStatus, intl
>
<View style={style.inputContainer}>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
ref={autoresponderRef}
value={autoResponderMessage}
blurOnSubmit={true}

View file

@ -69,6 +69,7 @@ class NotificationSettingsMentionsAndroid extends NotificationSettingsMentionsBa
/>
</View>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
autoFocus={true}
value={this.state.androidKeywords}
blurOnSubmit={true}

View file

@ -197,6 +197,7 @@ NotificationSettingsMentionsKeywords {
}
>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
autoCapitalize="none"
autoCorrect={false}
blurOnSubmit={true}

View file

@ -75,6 +75,7 @@ export default class NotificationSettingsMentionsKeywords extends PureComponent
>
<View style={style.inputContainer}>
<TextInputWithLocalizedPlaceholder
allowFontScaling={true}
ref={this.keywordsRef}
value={keywords}
blurOnSubmit={true}

View file

@ -58,6 +58,7 @@ const Body = forwardRef<BodyRef, BodyProps>(({canPost, files, initialValue, plac
style={styles.flex}
>
<TextInput
allowFontScaling={true}
ref={inputRef}
autoCapitalize='sentences'
autoCompleteType='off'