MM-39337 set allowFontScaling to TextInput components (#5751)
This commit is contained in:
parent
ebb00a205c
commit
f8baaf8505
22 changed files with 28 additions and 0 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -286,6 +286,7 @@ exports[`PostDraft Should render the DraftInput 1`] = `
|
|||
<View>
|
||||
<PasteInput
|
||||
accessible={true}
|
||||
allowFontScaling={true}
|
||||
autoCapitalize="sentences"
|
||||
autoCompleteType="off"
|
||||
blurOnSubmit={false}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
exports[`PostInput should match, full snapshot 1`] = `
|
||||
<ForwardRef
|
||||
allowFontScaling={true}
|
||||
autoCompleteType="off"
|
||||
blurOnSubmit={false}
|
||||
disableCopyPaste={false}
|
||||
|
|
|
|||
|
|
@ -298,6 +298,7 @@ export default class PostInput extends PureComponent {
|
|||
|
||||
return (
|
||||
<PasteableTextInput
|
||||
allowFontScaling={true}
|
||||
testID={testID}
|
||||
ref={this.input}
|
||||
disableCopyPaste={this.state.disableCopyAndPaste}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ exports[`SearchBar should match snapshot 1`] = `
|
|||
}
|
||||
>
|
||||
<ForwardRef(Themed.SearchBar)
|
||||
allowFontScaling={true}
|
||||
autoCapitalize="auto-capitalize"
|
||||
autoCorrect={false}
|
||||
autoFocus={true}
|
||||
|
|
|
|||
|
|
@ -323,6 +323,7 @@ export default class Search extends PureComponent {
|
|||
]}
|
||||
>
|
||||
<SearchBar
|
||||
allowFontScaling={true}
|
||||
testID={searchInputTestID}
|
||||
autoCapitalize={this.props.autoCapitalize}
|
||||
autoCorrect={false}
|
||||
|
|
|
|||
|
|
@ -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)}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ exports[`EditPost should match snapshot 1`] = `
|
|||
}
|
||||
>
|
||||
<TextInputWithLocalizedPlaceholder
|
||||
allowFontScaling={true}
|
||||
blurOnSubmit={false}
|
||||
disableFullscreenUI={true}
|
||||
keyboardAppearance="light"
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@ const NotificationSettingsAutoResponder = ({currentUser, currentUserStatus, intl
|
|||
>
|
||||
<View style={style.inputContainer}>
|
||||
<TextInputWithLocalizedPlaceholder
|
||||
allowFontScaling={true}
|
||||
ref={autoresponderRef}
|
||||
value={autoResponderMessage}
|
||||
blurOnSubmit={true}
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ class NotificationSettingsMentionsAndroid extends NotificationSettingsMentionsBa
|
|||
/>
|
||||
</View>
|
||||
<TextInputWithLocalizedPlaceholder
|
||||
allowFontScaling={true}
|
||||
autoFocus={true}
|
||||
value={this.state.androidKeywords}
|
||||
blurOnSubmit={true}
|
||||
|
|
|
|||
|
|
@ -197,6 +197,7 @@ NotificationSettingsMentionsKeywords {
|
|||
}
|
||||
>
|
||||
<TextInputWithLocalizedPlaceholder
|
||||
allowFontScaling={true}
|
||||
autoCapitalize="none"
|
||||
autoCorrect={false}
|
||||
blurOnSubmit={true}
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ export default class NotificationSettingsMentionsKeywords extends PureComponent
|
|||
>
|
||||
<View style={style.inputContainer}>
|
||||
<TextInputWithLocalizedPlaceholder
|
||||
allowFontScaling={true}
|
||||
ref={this.keywordsRef}
|
||||
value={keywords}
|
||||
blurOnSubmit={true}
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue