Yes
Yes
Environment:
OS: macOS High Sierra 10.13.4
Node: 8.4.0
Yarn: 1.6.0
npm: 5.4.2
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz => 0.54.2
The TextInput's text and placeholder should be the same size when "Large Text" is turned on and when it is turned off.
The TextInput's text and placeholder is larger when "Large Text" is turned on, despite allowFontScaling=false.
I have created a Snack demonstrating the issue here: https://snack.expo.io/@llamaluvr/android-textinput-allowfontscaling-not-respected
NOTE: This was originally opened and closed under (https://github.com/facebook/react-native/issues/13944). Opening a new issue with a demo and more detailed information.
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.
Re-opening. All we need to make this a complete issue is to add back the "Environment" section. Please run react-native info.
@hramos updated!
i need that fix too
Environment:
OS: macOS High Sierra 10.13.4
Node: 6.11.2
Yarn: 1.5.1
npm: 5.8.0
Watchman: Not Found
Xcode: Xcode 9.3.1 Build version 9E501
Android Studio: 3.1 AI-173.4720617
Packages: (wanted => installed)
react: ^16.3.0-alpha.1 => 16.3.0-alpha.2
react-native: 0.54.2 => 0.54.2
same issue here!
Same issue with RN 55.4
Same issue with RN 56.0
Guys, I faced with the same problem. I created this lib for resolving this issue in my project. Maybe it will help you: https://github.com/NelGarbuzova/react-native-stylized-placeholder
Am on RN 0.56.1. On Android, when TextInput is set with allowFontScaling=false, the text typed into TextInput works correctly with no scaling.
However, the placeholder text in TextInput does not work correctly and still scales.
For fixing the placeholder font scaling change @NelGarbuzova library works but for the input text part the workaround is to -
It will fix your fontSize and won't change because of system settings for both iOS and Android. For this workaround don't set allowTextScaling to false in TextInput.
Hello there 👋 this issue seems to have been inactive for the past few weeks. Because of this, it's likely that the issue is not a high priority anymore or it has been solved by OP; for these reasons, we'll close it. But please, if it's actually still an issue with 0.59 please comment below and we can reopen it or please send us a Pull Request with a fix 😊
@anirudha-ani solution works well but it's still an issue on RN 0.59.8
It's still an issue in 0.59.10
We've just upgraded to 0.59.10 and using:
Text.allowFontScaling = false;
is not respected.
Suddenly the app's text size if very large on devices that have a larger then default font size.
@yaronlevi
It's still an issue in 0.59.10
We've just upgraded to 0.59.10 and using:
Text.allowFontScaling = false;
is not respected.Suddenly the app's text size if very large on devices that have a larger then default font size.
use this way at the top of your root component:
if (Text.defaultProps == null) Text.defaultProps = {};
Text.defaultProps.allowFontScaling = false;
Still not resolved, yet it is closed :/
Most helpful comment
Same issue with RN 56.0