Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wasitajeew opened this issue Apr 24, 2020 · 4 comments
Labels
Component: TextInput Related to the TextInput component. Needs: Author Feedback Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@wasitajeew
Copy link

wasitajeew commented Apr 24, 2020

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

@react-native-bot react-native-bot added Component: TextInput Related to the TextInput component. Platform: Android Android applications. Needs: Author Feedback Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. and removed Needs: Triage 🔍 labels Apr 24, 2020
@github-actions
Copy link

⚠️ 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.

@fabOnReact
Copy link
Contributor

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

@stale
Copy link

stale bot commented Aug 29, 2020

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.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 29, 2020
@stale
Copy link

stale bot commented Sep 5, 2020

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.

@stale stale bot closed this as completed Sep 5, 2020
@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: TextInput Related to the TextInput component. Needs: Author Feedback Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants