We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was looking for help on the stackOverflow but just get this one which didn't solve my problem: here
I also want to directly update the value of a component due to performance reasons. Here is my code,
<TextInput ref="currentAlphabetRefer" editable={false} style={{width:60,fontSize:30,color:'#fff'}} defaultValue='test'/> this.refs.currentAlphabetRefer.setNativeProps({ defaultValue : 'A'})
<TextInput ref="currentAlphabetRefer" editable={false} style={{width:60,fontSize:30,color:'#fff'}} defaultValue='test'/>
this.refs.currentAlphabetRefer.setNativeProps({ defaultValue : 'A'})
However, the defaultValue doesn't get change.
But when I set the style by setNativeProps,
this.refs.currentAlphabetRefer.setNativeProps({ style :{color:'#f00'}})
I could see the fontColor turn red.
Is 'defaultValue' not a prop of TextInput ?
The text was updated successfully, but these errors were encountered:
OK,I've seen this question: issue1390, and resort to this page,which solved my puzzle.
Sorry, something went wrong.
No branches or pull requests
I was looking for help on the stackOverflow but just get this one which didn't solve my problem:
here
I also want to directly update the value of a component due to performance reasons.
Here is my code,
<TextInput ref="currentAlphabetRefer" editable={false} style={{width:60,fontSize:30,color:'#fff'}} defaultValue='test'/>
this.refs.currentAlphabetRefer.setNativeProps({ defaultValue : 'A'})
However, the defaultValue doesn't get change.
But when I set the style by setNativeProps,
this.refs.currentAlphabetRefer.setNativeProps({ style :{color:'#f00'}})
I could see the fontColor turn red.
Is 'defaultValue' not a prop of TextInput ?
The text was updated successfully, but these errors were encountered: