react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

Textinput change color inside box not working

Open vinothmoorthkumar opened this issue 3 years ago • 3 comments

Hi,

Here I m try to change color of text inside textinput box. I m passing color in theme as props still is not working.

<TextInput theme={{ colors: { text: "white"}}} label="data" value={value} />

Help me please

vinothmoorthkumar avatar Sep 22 '22 17:09 vinothmoorthkumar

Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a snack.expo.dev link or link to a GitHub repo under your username).

Can you provide a minimal repro which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.

github-actions[bot] avatar Sep 22 '22 17:09 github-actions[bot]

Couldn't find version numbers for the following packages in the issue:

  • react-native
  • react-native-paper
  • react-native-vector-icons

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

github-actions[bot] avatar Sep 22 '22 17:09 github-actions[bot]

I using "react-native-paper": "^5.0.0-rc.6"

vinothmoorthkumar avatar Sep 22 '22 17:09 vinothmoorthkumar

@vinothmoorthkumar can you please provide the repro steps on snack.expo.dev?

dakshbhardwaj avatar Sep 28 '22 07:09 dakshbhardwaj

@vinothmoorthkumar, I have the same issue. Did you solve the problem?

GubanovIgor avatar Oct 09 '22 16:10 GubanovIgor

I also have the problem. V5.0.0-rc.6

cyhnkckali avatar Oct 11 '22 08:10 cyhnkckali

In v5, since there are new theme colors, you have to override the following colors:

  • flat input - onSurfaceVariant
  • outlined input - onSurface

lukewalczak avatar Oct 11 '22 08:10 lukewalczak

Thanks Luke, so how ? @lukewalczak

cyhnkckali avatar Oct 11 '22 08:10 cyhnkckali

<TextInput theme={{ colors: { onSurface: "white"}}} mode="outlined" />

lukewalczak avatar Oct 11 '22 08:10 lukewalczak

Thanks Luke, It worked =) @lukewalczak

cyhnkckali avatar Oct 11 '22 08:10 cyhnkckali

@lukewalczak Thank you,

vinothmoorthkumar avatar Oct 13 '22 07:10 vinothmoorthkumar