-
Notifications
You must be signed in to change notification settings - Fork 1.1k
initialLayout behaves differently with and without js remote dedbug #330
Comments
Looks similar to this facebook/react-native#13463 |
@satya164 doesn't seem to be related |
You're sure? Are you able to swipe to change tabs? |
@satya164 I am able when "Debug JS remotely" is off, it seems to be somehow related with "Debug JS remotely". When "Debug JS remotely" is on I am not able neither click nor swipe to change a tab. |
@zhukovka I understand that it only happens when you are connected to the debugger. But the behaviour you are describing looks very similar to the issue I linked to, despite the different steps to repro. Or you are saying the behaviour is different from that issue? Also since the issue I linked to is related to layout, it's probable that some different behaviour in chrome debugger somehow triggers this issue. |
I have a similar problem.. When Remote Debug is ON, my layout is correct: When Remote Debug is OFF, my layouts gets weird: |
What I have found is in TabViewPagerScroll.js
in debug mode |
This problem is maybe of react native itself: facebook/react-native#15808 |
Hey, I just released a new alpha Please try the new version and see if it addresses your issue. If not, please open a new issue following the issue template. |
If state.index is set to a number other than 0, and an initial layout is set - TabViewAnimated works well with NO js remote debug, breaks with js remote debug on.
Expected behaviour
the active tab is set to 1 and I can switch tabs both with and without remote js debugging
Actual behaviour
the active tab is set to 1 and I can't switch tabs with remote js debug on - nothing happens when I'm trying to switch to another tab;
Code sample, screenshots
What have you tried
The text was updated successfully, but these errors were encountered: