Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No content rendered when the tab navigation is inside a ScrollView. #391

Open
YoucefBen47 opened this issue Mar 23, 2024 · 8 comments
Open

Comments

@YoucefBen47
Copy link

We were facing an issue after upgrading React Native and the navigation packages to the latest versions. Not sure if it's react-native-tab-view or react-native-pager-view but the content of the Material Top Tab was blank when inside a ScrollView.
I found suggestions to use your package however it's the same issue.
Is there a way to fix this ?

@Ritik5Prasad
Copy link

Ritik5Prasad commented Apr 29, 2024

+1
I was facing same I removed lazy

@Ritik5Prasad
Copy link

    lazy
    cancelLazyFadeIn
    // cancelTranslation
    // lazy Android Issue Content not Visible
    
    Write it like this

@Kerumen
Copy link
Contributor

Kerumen commented Apr 30, 2024

This also happened to us. Looks like this is due to react-native-pager-view@6.2.3 and the new architecture they are working on. If you upgrade to react-native-pager-view@6.3.1 it should fix the issue (as they enforced the legacy architecture in this version).

@MohsinAtArbisoft
Copy link

I am having same issue, I was not using lazy at the first place. Issue is specific to android, working fine on iOS.

@DSKonstantin
Copy link

The same issue, problems only on Android. Any ideas?

@MohsinAtArbisoft
Copy link

MohsinAtArbisoft commented May 7, 2024

I resolved it my removing flex: 1 from child component of Tabs.Tab. @DSKonstantin

<Tabs.Tab name={'name'}>
<View /> // this view should not have flex: 1
</Tabs.Tab>

@DSKonstantin
Copy link

DSKonstantin commented May 7, 2024

Thank you @MohsinAtArbisoft

For me helped:

<Tabs.Container
        lazy
        cancelLazyFadeIn 
        .....
>
  <Tabs.Tab name="followers" label={`Followers ${followersCount || 0}`}>
         <View style={{height: '100%'}}>
             <Tabs.FlashList />
.......

@FabianDean
Copy link

Thank you @MohsinAtArbisoft

For me helped:


<Tabs.Container

        lazy

        cancelLazyFadeIn 

        .....

>

  <Tabs.Tab name="followers" label={`Followers ${followersCount || 0}`}>

         <View style={{height: '100%'}}>

             <Tabs.FlashList />

.......

Yeah this is exactly how I set it up as well 👍

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

No branches or pull requests

6 participants