File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,10 @@ const SelectOption: React.FC<SelectOptionProps> = ({
60
60
< View >
61
61
< TouchableOpacity style = { selectButtonStyle } onPress = { toggleModal } >
62
62
< Text style = { { color : colors . dark , fontSize : size . text , fontWeight : 'normal' } } >
63
- { selectedValueState . state === null ? placeHolder : selectedValueState . state [ showLabel ] }
63
+ { ( selectedValueState . state === null
64
+ || typeof selectedValueState . state === 'number' ) ?
65
+ placeHolder :
66
+ selectedValueState . state [ showLabel ] }
64
67
</ Text >
65
68
</ TouchableOpacity >
66
69
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-select-options-search" ,
3
- "version" : " 1.0 .1" ,
3
+ "version" : " 1.1 .1" ,
4
4
"description" : " A optimized select option package for react native." ,
5
5
"main" : " SelectOption.tsx" ,
6
6
"react-native" : " SelectOption.tsx" ,
You can’t perform that action at this time.
0 commit comments