react-native-material-textfield
react-native-material-textfield copied to clipboard
`defaultValue` is greyed out
Hi,
Thank you for bringing this back to life, great job!
Anyways, when I use defaultValue
to get updates as the var changes, the Textfield value is greyedout.
const customer: Customer = useSelector(state => state.customers.selected)
. . .
<TextField
label='Name'
tintColor={Theme.COLORS.BUTTON_COLOR}
defaultValue={customer ? customer.name : 'NaN'}
editable={true}
onChangeText={text => setName(text)}
/>
This is what it looks like
This is what I think it should look like

Thank you!
Same issue here. There's no reason to present a value as a placeholder, and no way to alter the color of it without changing the whole color of the input.
@syky27 Did you ever figure out a solution to this?
just use my fork
Is this going to be merged?
The repo doesn't have commits since oct. Feel free to use my fork, it has this commit.
The repo doesn't have commits since oct. Feel free to use my fork, it has this commit.
Yup, I saw the repo status, but wanted to ask anyway. Thanks, but I'm already using the fix with help of patch-package which I prefer more than foreign repos.
@greatwitenorth sorry, not without hotfixing this package. And decided I am not touching react native ever again. 🤢
@greatwitenorth just give the style={{color:"#000"}} that works for me