Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Tab View inside Flatlist not shown content #1374

Closed
2 of 5 tasks
gurbela opened this issue Aug 8, 2022 · 5 comments
Closed
2 of 5 tasks

Tab View inside Flatlist not shown content #1374

gurbela opened this issue Aug 8, 2022 · 5 comments

Comments

@gurbela
Copy link

gurbela commented Aug 8, 2022

Current behavior

When I switched tabs ( inside Flatlist) the content was not shown.

Without Flatlist it works fine, any ideas on how to fix it?
(the scrollable view is required)

Expected behavior

current version:
"react-native-pager-view": "5.4.25",
"react-native-tab-view": "3.1.1",

I was also using the old version: "react-native-tab-view": "2.16.0", but when I rotate the phone, the scene view is not looking correctly, which is fixed in "3.1.1" version

Reproduction

https://snack.expo.dev/oPaWEf5_-

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Environment

package version
react-native-tab-view 3.1.1
react-native-pager-view 5.4.25
react-native 0.64.2
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

Couldn't find version numbers for the following packages in the issue:

  • react-native

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

The versions mentioned in the issue for the following packages differ from the latest versions on npm:

  • react-native (found: 0.64.2, latest: 0.69.4)

Can you verify that the issue still exists after upgrading to the latest versions of these packages?

@szymonrybczak
Copy link
Contributor

szymonrybczak commented Aug 30, 2022

This is fixed in #1383 and it'll soon merged into main cc. @okwasniewski

@okwasniewski
Copy link
Collaborator

What's the point of embedding tab-view inside a flatlist? This looks really off to me by rendering in with renderItem. If you want to render tab-view inside scroll view you can refer to this solution: #1349.

@okwasniewski
Copy link
Collaborator

Closing this as stale.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants