You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run into the issue where android debug build is working not the same as production build.
I made a simple app which shows only one carousel item at the time. Production build works fine. But debug with enabled/disabled remote debugging is working like this:
So, basically, I can move through all items in once during the first slide gesture (unexpected). But after that, I can slide only one item per sliding gesture (expected behaviour).
ScrollView's performance on Android while debugging is everything but ideal. Unfortunately there is nothing we can do about it since React Native doesn't offer a proper scroll callback for its component. This means that when momentum is disabled (the default behavior), we have to rely on onScrollEndDrag and a bunch of hacks to make it work. In debug mode, onScrollEndDrag is apparently triggered a bit late, just enough to let you scroll through multiple slides...
Still, here are a few things you could try:
disabling JS Dev Mode in the dev menu, which usually result in a huge performance boost on Android
setting scrollEndDragDebounceValue to 0 for your debug build
setting enableMomentum to true for your debug build so that the callback will be triggered on onMomentumScrollEnd instead of onScrollEndDrag. Note that you will be able to scroll through multiple slides, but the callback might be more reliable.
I've already tried all your suggestions, but unfortunately neither of them suits me. It's not a big deal for me, cause production build is fine. I will use it for testing. It's really annoying to see such android only limitations, through. Hopefully some day things will be better.
Hello.
I've run into the issue where android debug build is working not the same as production build.
I made a simple app which shows only one carousel item at the time. Production build works fine. But debug with enabled/disabled remote debugging is working like this:
So, basically, I can move through all items in once during the first slide gesture (unexpected). But after that, I can slide only one item per sliding gesture (expected behaviour).
My code is simple:
I saw #34, but I would like to know whether I can do with my code to fix this behaviour. Am I missing something?
The text was updated successfully, but these errors were encountered: