-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
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
React native picker default value #20163
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Comments
We are automatically closing this issue because it does not appear to follow any of the provided issue templates. Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library. If you'd like to start a discussion, check out https://discuss.reactjs.org or follow the discussion template. |
react-native-bot
added
Ran Commands
One of our bots successfully processed a command.
📋No Template
labels
Jul 12, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
I have picker that is supposed to make some editing on existing data as such:
This little piece of code
selectedValue={this.props.ID ? this.newData.get('shift') : this.props.store.EmpShift}
will indicate if there is a selected day, display it. if not whatever is selected, gets stored in a state calledEmpShift
.The problem I am facing is, the picker value does not change the display, whatever day I choose it reverts immediately back to
this.newData.get('shift').
I usually tackle these sorts of issues by changing
value
todefaultvalue
in inputs, but in this case there are no props fordefaultvalue
.How am I able to show the changes in regards with my existing data ? or show a one time
defaultvalue
on screen which I can change later and show.The text was updated successfully, but these errors were encountered: