-
Notifications
You must be signed in to change notification settings - Fork 24k
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 blinking cursor color is not correct on Android Pie when using selectionColor #22762
Comments
Confirmed for react-native 0.57.7 |
Facing the same issue in 0.57.5. |
Issue occurring on RN 0.57.7 and Android 9 |
I tried this with RN 0.59.1 and an Android Pie device and I am able to change But please, if it's actually still an issue with 0.59.x please comment below and we can reopen it. |
I am still facing it in React Native 0.59.4 |
Same here |
Same for React Native 0.59.5 |
React Native 0.59.5 still a issue |
I can see that the cursor color (the one that blinks when the text is focused) has the wrong color on Android P. There is a way to do this quite easy natively which is changing the <item name="colorControlActivated">yourColorHere</item> However this will affect any TextInput in your app (unless you write different styles and mess with more native code). |
@grifotv yeah that might happen as several native widget use |
@ferrannp I see, not so bad. thanks |
What about the expo users? There´s no solution? makes no sense when react native recommends to use the expo on docs. |
@mgcostaParedes - it sounds like there’s a bug with selectionColor in react-native’s textinput on android pie, you can work around it by changing the global accent colour by editing native config as @ferrannp mentioned but this should be fixed. eject your expo project if you need to change it before this is fixed |
I'm also experiencing this as an expo user and ejecting is far too much trouble for this one little bug. Please fix |
I need to be able to set this per TextInput as I have some components with a black background and some with white. Overriding in styles.xml is global, so this bug really needs fixing.
|
Still an Issue ! |
This is still an issue on Android 10. Supplying |
Please Fix This Issue |
Please fix the issue |
i am waiting for this |
green color in textinput, |
Still experiencing this issue on 0.62, would love to see a fix for this |
The fix for this seems to be in 0.63.0-rc.0, so if you're willing to update React Native to a release candidate, this should be solved once and for all. The relevant code is here: https://github.com/facebook/react-native/blob/v0.63.0-rc.0/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java#L437 Note that this will work for every version of Android except Android Pie (9), as it seems like there's no support for that version based on the code |
Testing on latest master. Does not work on Android Pie 9. The title of this issue is:
@pxpeterxu Do you have information stating that Android Pie does not support this functionality? Otherwise I'll try to fix it. Thanks |
Lines 451 to 456 in e2dd18d
There must be a reason he added the exception with e7a14b8 |
@fabriziobertoglio1987 is this dealt with in RN 0.63.0? |
Nope, I don't! I haven't really tried this |
Still experiencing this issue on 0.63.2 |
still not found any solution for this. if we want to provide a different color for cursor |
please remove me from this thread..I am not the right "Fabrizio"
…On Wed, 12 Aug 2020 at 10:53, Divendra Rajput ***@***.***> wrote:
still not found any solution for this. if we want to provide a different
color for cursor
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22762 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAASEDQBQYUO3WN7FX2TEKDSAKND3ANCNFSM4GL7W5TA>
.
--
To unsubscribe from this group and stop receiving emails from it, send an
email to ***@***.***
--
Fabrizio Michels
|
Based on comments above this seems like it's fixed. I'm also not able to repro on a modern Expo Snack on Android: https://snack.expo.io/@chrisglein/repro29627 |
please remove me from this thread..I am not the right "Fabrizio"
…On Wed, 12 Aug 2020 at 14:41, Chris Glein ***@***.***> wrote:
Based on comments above this seems like it's fixed. I'm also not able to
repro on a modern Expo Snack on Android:
***@***.***/repro29627
But sounds like some others are still seeing. Can you clarify what's
different about your repro from the Snack above?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22762 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAASEDVGLR64QDLXXJ55NZ3SALH5DANCNFSM4GL7W5TA>
.
--
To unsubscribe from this group and stop receiving emails from it, send an
email to ***@***.***
--
Fabrizio Michels
|
@fabrizio The unsubscribe link is in the footer of the email you're replying to. |
as explained here #22762 (comment) Lines 451 to 456 in e2dd18d
this does not work on ReactNative on API 28 (Pie) as explained in this commit because we are using a reflection to set the cursor color Line 463 in e2dd18d
the field |
Any news? |
We are using |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Environment
React Native Environment Info:
System:
OS: macOS 10.14.3
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Memory: 284.46 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.11.4 - ~/.nvm/versions/node/v8.11.4/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.5.0 - ~/.nvm/versions/node/v8.11.4/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 26, 27, 28
Build Tools: 27.0.3, 28.0.2, 28.0.3
System Images: android-24 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: ^16.7.0 => 16.7.0
react-native: 0.57.8 => 0.57.8
npmGlobalPackages:
react-native-git-upgrade: 0.2.7
Description
TextInput selectionColor not change the color on android react-native 0.57.8
Reproducible Demo
<TextInput selectionColor={'red'}/>
The text was updated successfully, but these errors were encountered: