New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Row OnPress works on Simulator but not on Mobile #61
Comments
I see, can you please share the code of your touchable? Just for documentation and for me to follow your pattern if that is possible. Beautiful work man and good job 👍 |
No, I can't, it is private. |
What do you mean by touchable native? I tried TouchableHighlight and standard Button and both did not work on mobile (but worked on simulator) |
native component, that can be touched |
I've created pull request for this issue: #64 |
First off I'd like to stay this library is great, has been so helpful! I just wanted to chime in because I'm currently experiencing the same issues. I have Could be related to this issue? facebook/react-native#3082 |
This bug because of setting upd: the issue is described in stackoverflow |
Same issue for me. I'm trying to replicate iOS's editable list behavior, where you can drag to re-arrange, or tap the red circle to delete: Unfortunately, this only works on the Simulator. On both iOS and Android physical devices, you can't reliably tap the red circle. Every once in a blue moon the touch will respond, but it's rare. Any updates on how to get around this? Maybe if there were Hitbox support this issue would be mitigated. |
I figured out the problem and came up with a partial workaround. The problem is that when you use
The only caveat here is that the touch happens on press down, rather than the usual on press up, so the user can't cancel their touch event by sliding their finger away. But for my situation, it's good enough until this issue is fixed in this library. |
I've had the same issue and the best way to avoid it is using onPressRow prop instead of the inner component onPress. You can get the item index from the function param.
|
So on my simulator, I can press on a row to navigate to a screen, and I can long press a row to drag then drop it.
But on the iphone, row onPress does not work. Is it only me?
and then MyComponent renders this: (I use onPress in the one and only
TouchableOpacity
)The text was updated successfully, but these errors were encountered: