fix: Handle enabling interactions for RNSScreenStack that is moved to window#3469
fix: Handle enabling interactions for RNSScreenStack that is moved to window#3469kmichalikk wants to merge 1 commit intomainfrom
Conversation
|
What is the state of this PR here? Is it ready for review? |
|
I do hope this patch will be merged. Tested on RN 0.83.1 + New Architecture + iOS 26. Confirmed: react-native-screens@4.23.0 with PR #3469 applied manually fixes the freeze when using Stack.Navigator nested inside Material Top Tabs |
|
@kmichalikk can you update me what's the status of this PR? |
|
This is a potential fix for #3466. Since this solves @huats problem we can revisit this now. |
|
I'll be happy to test some elements if that can be helpful ! |
|
@huats could you check if #3631 fixes the problem instead this patch? This draft here is an old PR that fixes old logic. We're withdrawing from blocking interactions during transition, because we now have a proper fix for some state-related bugs, and we'll probably make it a default some time in the feature, and, if there are no bugs, remove the interaction disabling code entirely. |
|
Sorry for the time to get back to you. Yes I can confirm that #3631 also fixes my issue ! So if would be great to have either of one to be merged so that I can avoid to maintain a separe patch in my tree. Thanks for your help ! |
Description
This fix handles the case where the whole nested ScreenStack is moved to window with UIPageViewController. The logic worked under the assumption that the nested stack is put inside outer stack's screen, but this is not the case here.
We had a similar case when the hierarchy changed on JS reload. The same fix can be used here by just removing a condition.
Changes
Modified RNSScreenStack.didMoveToWindow
Test code and steps to reproduce
Install
react-native-pager-viewand paste the following code intoApp.tsx: