How to change the color of the caret in a textinput for Android devices

I have a detached project and was wondering if there is a way to change the textinput color of the caret on android devices? The caret it the little ball that shows up when you select text in a textinput field. Right now it just defaults to green as shown in the article below:

Potential solutions I’ve tried:

  • Changing the textinput selectionColor prop -This only changes the background color when you highlight text.

  • Some articles online that are using pure React Native without expo mention setting
    < item name=“colorControlActivated”>#FF0000
    < style name=“AppTheme” parent=“Theme.AppCompat.Light.NoActionBar”>.
    However, there’s no AppTheme in the AndroidManifest.xml. MainActivity has a theme called Theme.Exponent.Splash, but when I add the colorControlActivated in there the UI on my app is very distorted and also raises a stack trace that isn’t legible

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.