-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Scenes are not visible when TabView is inside of react-native-modalize #1264
Comments
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
Hi @holyris ; I am facing the same issue, did you manage to find a solution since? :) |
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
@pierroo It seems that I mistakenly made a working reproduction. |
@holyris I have the most basic use of modalize, which works perfectly anywhere else in the app except when I'm using tab view:
Then the component inside the Modalize is literally the tabview from the documentation:
with renderScene using simple components as well. But I so wish I could let the content adjust dynamically as expected like every other components except the tabview... |
@pierroo I didn't find a solution to get the modal to adjust his height with the TabView. But tbh it seems a weird behaviour to me. What happens if you have tabview's scenes with different height ? On my project I found a solution to display the tabview aside other components, inside a modal, which is full height.
And this is my modal content :
It's not perfect because the modal will be full height, but for me it's ok. Maybe you can have satisfying result by setting the height percentage |
Thank you for this additional input. However, I would have wanted for the whole tabview (and scenes) to adjust to their PARENT element (the modalize), then indeed a scroll inside if ever it goes beyond the height. In your case, it works because you made it full height. Just like on my end I set a precise height as well. Thank you for your help! :) |
Hey, late to the party but I've opened another issue which I think is causing the same issue you're having here running your expo example with an edited SceneView as seen in my fork I can get the modal scenes to render, not sure if this helps you and as mentioned in my own bug report, this change prevents tab views outside of modals or scrollviews to not render without a specified height so if you need to do both you would have to include both the official 3.1.1 react-native-tab-view and also a modified version |
Can confirm this is currently the case. |
Current behavior
When TabView is inside of a modal (react-native-modalize), the scenes are not visible.
It's working properly on web, but not on Android
Expected behavior
Scenes should be visible
Reproduction
https://snack.expo.dev/@holyris/tabview-in-modalize
Platform
Environment
The text was updated successfully, but these errors were encountered: