react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

hoverComponent wrongly positioned

Open nemanja-l opened this issue 6 years ago • 3 comments

Hello, I'm experiencing an issue where hoverComponent is wrongly positioned to the left, approximately about -100px left. This issue happens only on iOS (simulator and device) when testing the Release build (debug build works fine).

"[email protected]"
"[email protected]"

Xcode 10.2.1 iPhone 7 Plus - 12.2

I'm attaching the gif file where you can see the behavior. Also, it seems that everything works fine when there are only two items in the list.

release_ios

nemanja-l avatar May 13 '19 15:05 nemanja-l

Hi @nemanja-l

Had the exact same issue which seems related to #58. I think the problem is that the hover offset sometimes is calculated before the component has been fully rendered (is dependent on an arbitrary setTimeout). See the pull request which makes it depend on the onLayout property instead #73.

Morten

Mortenjoe avatar Jun 03 '19 08:06 Mortenjoe

Hi Guys, I'm having the exact same issue,

"react-native-draggable-flatlist": "^1.1.7" "react-native": "0.59.10"

any remedy for this? :(

chamileb avatar Aug 01 '19 06:08 chamileb

Same issue, not sure all the interacting factors, but for some reason the containerOffset (calculated from the pageX or pageY measurement on containerView) is calculating differently in iOS vs Android or Simulator. Luckily the correct value for our project seems to be zero, so that's a good fix to try if you run into this. If anyone knows what iOS does differently, that would be a cool thing to learn. Since the page values are relative to root there's a lot of places where a slightly different (flex implementation, navigator) config could lead to this but I don't like not knowing.

exoconnor avatar Oct 29 '19 01:10 exoconnor