react-native-paper
react-native-paper copied to clipboard
Textinput change color inside box not working
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
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.
Couldn't find version numbers for the following packages in the issue:
react-nativereact-native-paperreact-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.
I using "react-native-paper": "^5.0.0-rc.6"
@vinothmoorthkumar can you please provide the repro steps on snack.expo.dev?
@vinothmoorthkumar, I have the same issue. Did you solve the problem?
I also have the problem. V5.0.0-rc.6
In v5, since there are new theme colors, you have to override the following colors:
- flat input -
onSurfaceVariant - outlined input -
onSurface
Thanks Luke, so how ? @lukewalczak
<TextInput theme={{ colors: { onSurface: "white"}}} mode="outlined" />
Thanks Luke, It worked =) @lukewalczak
@lukewalczak Thank you,