Comments (3)
Hi, if you just need the key when I examined SelectList.tsx, I saw this structure and this is how I solved my own problem.
if(save === 'value'){ setSelected(value); }else{ setSelected(key) }
You can get the key when you replace the save props with any value other than value. If I have free time I can work on capturing both values. Good work.
from react-native-dropdown-select-list.
Both key and value would be great!
from react-native-dropdown-select-list.
Approved for implementation
from react-native-dropdown-select-list.
Related Issues (20)
- Issue introduced with version 2.0.0
- Value being returned from MultipleSelectList is not an array.
- onSelect is being triggered when defaultOption is used
- ERROR Error: Objects are not valid as a React child (found: object with keys {id, skillName}). If you meant to render a collection of children, use an array instead. HOT 2
- checkbox checkmark color how to chnage ? its shows grey also click outside dropdown not close
- this code not working with formik HOT 2
- MultipleSelectList setSelected return Function anonymous HOT 4
- how to set autoselected when binding data??
- Bug on search bar HOT 2
- How can i set initial values selected? HOT 6
- MultipleSelectList and SelectList bugs HOT 1
- MultiSelectList's `OnSelect()` returns a function, instead of the selected values array HOT 1
- Is there any way to get input text onChangeText property in search field ?
- How to disable the SelectList HOT 4
- Placeholder text color style HOT 2
- scroll on dropdown doesnt working when dropdownstyle position set to absolute HOT 2
- Search input placeholder text color not change. HOT 3
- On reopening filter, the selected options no longer appear checked HOT 3
- Is it possible to remove the dropdown animation and not move the block under it?
- Remove selected item and see the placeholder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-dropdown-select-list.