satya164 / react-native-tab-view

A cross-platform Tab View component for React Native
MIT License
5.14k stars 1.07k forks source link

Tab View inside Flatlist not shown content #1374

Closed gurbela closed 1 year ago

gurbela commented 2 years ago

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

Environment

package version
react-native-tab-view 3.1.1
react-native-pager-view 5.4.25
react-native 0.64.2
github-actions[bot] commented 2 years ago

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.

github-actions[bot] commented 2 years ago

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?

szymonrybczak commented 2 years ago

This is fixed in https://github.com/satya164/react-native-tab-view/pull/1383 and it'll soon merged into main cc. @okwasniewski

okwasniewski commented 2 years ago

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 commented 1 year ago

Closing this as stale.