Comments (22)
@ajonno @DanAndreasson
Available now via npm.
from react-native-modal-dropdown.
my tests on device seem to indicate that animated={false}
makes taps work on first try. there's a slight lag but certainly first tap works
from react-native-modal-dropdown.
It is still happening to me with 0.5.0.
from react-native-modal-dropdown.
It is still happening to me!
from react-native-modal-dropdown.
@Werewolve
Could you possibly be trying to access the dropdown after clicking a textInput (or triggering the keyboard somehow)? this was the cause of the problem for me.
from react-native-modal-dropdown.
Passing keyboardShoudPersistTaps="always"
in ModalDropdown
component works for me
from react-native-modal-dropdown.
Do you render the option row yourself or use the default render.
from react-native-modal-dropdown.
+1 This is what I thought disabling the fade-in animation would fix
from react-native-modal-dropdown.
We really need this fixed as soon as possible. I'll give animated=false a try today in mean time
from react-native-modal-dropdown.
@ajonno
Still an issue when animation closed?
from react-native-modal-dropdown.
let me double check stay tuned..
from react-native-modal-dropdown.
unf. this is still a problem and we had to backlog it. picked it up again now and trying to resolve. setting animation=false isnt making any difference re our tests on device. we can confirm that it is specifically 2 taps.
(we are using a bound function on renderRow= .. )
1st tap does nothing, 2nd tap is recognised.
from react-native-modal-dropdown.
ok have figured it out. For our use case, we need to have keyboardShoudPersistTaps="always"
. This ensures, that the first tap on a row in the (react-native-modal-dropdown) ListView is recognised and handled. We'll submit a change/pull request shortly, greatly appreciate if you can review asap and merge. Thanks!
from react-native-modal-dropdown.
@ajonno
Great. I'm ready and thank you.
from react-native-modal-dropdown.
my pleasure! i just tried a fresh install via yarn (yarn add react-native-modal-dropdown
) but the change isn't there. do you need to bump the version number to 0.4.4 ?
from react-native-modal-dropdown.
Has this been fixed and released? https://www.npmjs.com/package/react-native-modal-dropdown lists 0.4.3
as latest
from react-native-modal-dropdown.
brilliant many thanks
from react-native-modal-dropdown.
Close the issue?
from react-native-modal-dropdown.
Hi, i'm not sure whether it's the same problem, but i have a page with multiple dropdowns, and if one of them is expanded i have to tap twice to open another one, first tap will close the current dropdown, second will expand the other one. I'm using the default renderRow, tried both
animated={false}
and
keyboardShouldPersistTaps="always"
from react-native-modal-dropdown.
@Dror-Bar there is no textInput on the screen. I have three dropdowns on the screen, maybe that cause the problem. After selecting the index that I store in the state is the old one, after selecting again the index ist correct.
from react-native-modal-dropdown.
Hey, I am having the issue with having to double click and the dropdown is in a textInput, same as you. How did you fix it?
Thanks
from react-native-modal-dropdown.
Passing
keyboardShoudPersistTaps="always"
inModalDropdown
component works for me
(keyboardShou" l "dPersistTaps="always") - don't miss a letter "l"!!!
from react-native-modal-dropdown.
Related Issues (20)
- Fork with latest PR's merged HOT 2
- is it possible to add the icon on the right of the default value? HOT 4
- Freeze Android HOT 1
- Any possibility to detect onReachEnd options? HOT 1
- This project is working but seems outdated. Which fork to use? HOT 26
- Search bar feature HOT 1
- New Feature : Display selected Item in the Modal as it is in renderItem HOT 2
- a error in the react native 0.63 HOT 11
- Handle Press Error ModalDropdown HOT 1
- Is this library no longer maintained ? HOT 4
- zIndex visibility problem HOT 1
- filter not work without schroll
- Passing props to the rendered FlatList instance
- Getting Scroll to index error HOT 3
- on change of options how can I rerender renderButtonText and empty it's value inside dropdown?
- Error on web HOT 4
- app crashed when press on dropDownmodal HOT 4
- renderButtonComponent or renderRightComponent does not exist in ModalDropdownProps in latest version HOT 1
- How can i use methods show and hidden?
- Z index issue of the dropdown if placed in a view
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-modal-dropdown.