File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 9
9
Animated ,
10
10
TextInput ,
11
11
ViewStyle ,
12
- Pressable } from 'react-native' ;
12
+ Pressable ,
13
+ Keyboard
14
+ } from 'react-native' ;
13
15
14
16
import { MultipleSelectListProps } from '..' ;
15
17
@@ -167,7 +169,7 @@ const MultipleSelectList: React.FC<MultipleSelectListProps> = ({
167
169
( selectedval ?. length > 0 )
168
170
169
171
?
170
- < TouchableOpacity style = { [ styles . wrapper , boxStyles ] } onPress = { ( ) => { if ( ! dropdown ) { slidedown ( ) } else { slideup ( ) } } } >
172
+ < TouchableOpacity style = { [ styles . wrapper , boxStyles ] } onPress = { ( ) => { if ( ! dropdown ) { Keyboard . dismiss ( ) ; slidedown ( ) } else { slideup ( ) } } } >
171
173
< View >
172
174
< Text style = { [ { fontWeight :'600' , fontFamily} , labelStyles ] } > { label } </ Text >
173
175
< View style = { { flexDirection :'row' , marginBottom :8 , flexWrap :'wrap' } } >
@@ -184,7 +186,7 @@ const MultipleSelectList: React.FC<MultipleSelectListProps> = ({
184
186
</ View >
185
187
</ TouchableOpacity >
186
188
:
187
- < TouchableOpacity style = { [ styles . wrapper , boxStyles ] } onPress = { ( ) => { if ( ! dropdown ) { slidedown ( ) } else { slideup ( ) } } } >
189
+ < TouchableOpacity style = { [ styles . wrapper , boxStyles ] } onPress = { ( ) => { if ( ! dropdown ) { Keyboard . dismiss ( ) ; slidedown ( ) } else { slideup ( ) } } } >
188
190
< Text style = { [ { fontFamily} , inputStyles ] } > { ( selectedval == "" ) ? ( placeholder ) ? placeholder : 'Select option' : selectedval } </ Text >
189
191
{
190
192
( ! arrowicon )
Original file line number Diff line number Diff line change 8
8
ScrollView ,
9
9
Animated ,
10
10
TextInput ,
11
+ Keyboard
11
12
} from 'react-native' ;
12
13
13
14
import { SelectListProps } from '..' ;
@@ -168,7 +169,7 @@ const SelectList: React.FC<SelectListProps> = ({
168
169
169
170
</ View >
170
171
:
171
- < TouchableOpacity style = { [ styles . wrapper , boxStyles ] } onPress = { ( ) => { if ( ! dropdown ) { slidedown ( ) } else { slideup ( ) } } } >
172
+ < TouchableOpacity style = { [ styles . wrapper , boxStyles ] } onPress = { ( ) => { if ( ! dropdown ) { Keyboard . dismiss ( ) ; slidedown ( ) } else { slideup ( ) } } } >
172
173
< Text style = { [ { fontFamily} , inputStyles ] } > { ( selectedval == "" ) ? ( placeholder ) ? placeholder : 'Select option' : selectedval } </ Text >
173
174
{
174
175
( ! arrowicon )
You can’t perform that action at this time.
0 commit comments