Skip to content

[Android][TextInput] Can't change fontStyle from 'italic' to 'normal' when typing and set secureTextEntry is true  #28745

@wasitajeew

Description

@wasitajeew

I have example code

<TextInput style={[TEXT_STYLE.textInput, { ...Platform.select({ ios: { fontFamily: password ? type.base : type.italic, fontSize: placeholderSize }, android: { fontFamily: 'Lato-Regular', fontStyle: password ? 'normal' : 'italic', fontSize: placeholderSize } }) } ]} secureTextEntry={true} onChangeText={(text) => setPassword(text)} value={passwordInput} placeholder={placeholder} placeholderTextColor={COLORS.Default.darkGray} />

If password is empty, it's should be 'italic'. But if password is not empty, it's should be 'normal'.
iOS work but android doesn't work.

Component: TextInput
Platform: Android
RN: 0.0.61

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: TextInputRelated to the TextInput component.Needs: Author FeedbackNeeds: Environment InfoPlease run `react-native info` and edit your issue with that command's output.Platform: AndroidAndroid applications.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions