xcarpentier / react-native-country-picker-modal

🇦🇶 Country picker provides a modal allowing a user to select a country from a list. It display a flag next to each country name.
https://reactnative.gallery/xcarpentier/country-picker
MIT License
1.08k stars 802 forks source link

【Keyboard】Double taps to dismiss keyboard? #352

Closed arlovip closed 4 years ago

arlovip commented 4 years ago

Thanks for this repo.

Issue Description

Need to tap twice to dismiss keyboard when selecting country with keyboard popping up.

Steps to Reproduce / Code Snippets

                   <CountryPicker
                            withFilter={true}
                            withAlphaFilter={true}
                            withFlag={true}
                            withFlagButton={true}
                            autoFocus={true}
                            filterProps={{
                                autoFocus: true,
                                placeholder: 'Search',
                            }}
                            onSelect={this.onSelectCountry}
                            countryCode={cca2}
                            preferredCountries={this.state.allCountrys}
                            flatListProps={{keyboardShouldPersistTaps: 'always'}} // This is useless?
                        />

Expected Results

Tap once to select the cell with country even the keyboard is popping up.

Additional Information

info Fetching system and libraries information...
System:
    OS: macOS 10.15.5
    CPU: (4) x64 Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz
    Memory: 455.59 MB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.6.0 - /usr/local/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.8.4 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 23, 24, 26, 27, 28, 29
      Build Tools: 26.0.2, 27.0.3, 28.0.2, 28.0.3, 29.0.2, 30.0.0
      System Images: android-24 | Google APIs Intel x86 Atom, android-27 | Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom
      Android NDK: 16.1.4479499
  IDEs:
    Android Studio: 4.0 AI-193.6911.18.40.6514223
    Xcode: 11.5/11E608c - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_161 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.2 => 0.63.2 
  npmGlobalPackages:
    *react-native*: Not Found

"react-native-country-picker-modal": "2.0.0"

Any solution is appreciated.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.