File tree Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -480,20 +480,22 @@ export default class Dropdown extends PureComponent {
480480
481481 return (
482482 < View onLayout = { this . onLayout } style = { containerStyle } >
483- { modal && < View style = { [ styles . picker , pickerStyle , pickerStyleOverrides ] } >
484- < FlatList
485- keyboardShouldPersistTaps = "always"
486- ref = { this . updateScrollRef }
487- data = { itemData }
488- style = { [ styles . scroll , scrollStyle ] }
489- renderItem = { this . renderItem }
490- keyExtractor = { this . keyExtractor }
491- scrollEnabled = { visibleItemCount <= itemCount }
492- ItemSeparatorComponent = { this . renderSeparator }
493- ListFooterComponent = { this . renderFooter }
494- ListHeaderComponent = { this . renderHeader }
495- />
496- </ View > }
483+ { modal && (
484+ < View style = { [ styles . picker , pickerStyle , pickerStyleOverrides ] } >
485+ < FlatList
486+ keyboardShouldPersistTaps = "always"
487+ ref = { this . updateScrollRef }
488+ data = { itemData }
489+ style = { [ styles . scroll , scrollStyle ] }
490+ renderItem = { this . renderItem }
491+ keyExtractor = { this . keyExtractor }
492+ scrollEnabled = { visibleItemCount <= itemCount }
493+ ItemSeparatorComponent = { this . renderSeparator }
494+ ListFooterComponent = { this . renderFooter }
495+ ListHeaderComponent = { this . renderHeader }
496+ />
497+ </ View >
498+ ) }
497499 </ View >
498500 ) ;
499501 }
Original file line number Diff line number Diff line change 11import PropTypes from "prop-types" ;
22import React , { PureComponent } from "react" ;
3+ import { Keyboard } from 'react-native' ;
34import { Button } from "react-native-material-buttons" ;
45import styles from "./DropdownItem.styles" ;
56import { theme } from "../../constants/Theme" ;
@@ -31,6 +32,7 @@ export default class DropdownItem extends PureComponent {
3132
3233 if ( typeof onPress === "function" ) {
3334 onPress ( index ) ;
35+ Keyboard . dismiss ( ) ;
3436 }
3537 }
3638
You can’t perform that action at this time.
0 commit comments