-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[ TextInput ][ Android ] style/fontFamily not updated on component re-render #17517
Comments
Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version? I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer. |
Still happening in the latest version of react-native Environment: Packages: (wanted => installed) |
This is still happening |
Still not fixed in 0.57.8 (#22644) |
I'm getting this issue I believe. The font will be applied to the placeholder, but not the text that the user inputs.
|
Is this a bug report?
yes
Have you read the Contributing Guidelines?
yes
Environment
Environment:
OS: macOS High Sierra 10.13.2
Node: 8.4.0
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: https://github.com/expo/react-native/archive/sdk-21.0.2.tar.gz => 0.48.4
Target Platform: Android (7.0.0)
Steps to Reproduce
Note: The issue only applies to Android. On iOS it has the expected behavior.
Consider the component above. When the component has no text, the placeholder should be visible with fontFamily bariol-regular. When the user starts typing, the inserted text should have fontFamily bariol-bold. When the user erases all the content of the TextInput, the placeholder should appear again with fontFamily: 'bariol-regular'.
Expected Behavior
Actual Behavior
On step 3 the fontFamily is not updated.
Reproducible Demo
https://snack.expo.io/@fsarmento/inputtext-style-bug-report
The text was updated successfully, but these errors were encountered: