react-native-select-picker
react-native-select-picker copied to clipboard
Using key as a property like the example triggers a warning
Current behavior
I am trying to set the key
property for SelecPicker.Item
as in the example but got the following warning:
Checking out the code, as expected, there is no
key
props attribute so that's why the error is triggered.
Expected behavior
When setting a key for the SelectPicker.Item
, no warning should appear.
Notes
I tried creating a React.Fragment
enclosing the SelectPicker.Item
but it doesn't show as an option anymore. Therefore it appears that there is no current solution.