Skip to content

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

Closed

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

Activity

  1. added
    Component: TextInput
    Platform: Android
    Needs: Environment Info
    and removed on Apr 24, 2020
  2. github-actions commented on Apr 24, 2020

    @github-actions
    ⚠️ Missing Environment Information
    ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.
  3. fabOnReact commented on May 28, 2020

    @fabOnReact
    Contributor

    I tried and can not reproduce, no reproducible example ..setting this up took me too much time sorry

  4. stale commented on Aug 29, 2020

    @stale

    Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

  5. added
    Stale
    on Aug 29, 2020
  6. stale commented on Sep 5, 2020

    @stale

    Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

  7. locked as resolved and limited conversation to collaborators on Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: TextInputNeeds: Author FeedbackNeeds: Environment InfoPlatform: AndroidStale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions