Skip to content

Tabbar loads all scenes at mount, is lazy load possible? #521

@wzywno

Description

@wzywno

Hi,
I was wondering how to work with Tabbar when I want each tab to show data which is fetched from server.
Now all tabs are mounted at once which is not a desired behavior for me.
I want to lazy load data for screens.
Do you have any idea how to do that? I went through the source code and I could not find place where tabs are iterated and rendered at once.
Is there any event or callback when the tab is picked from tabbar?

Regards

Version

  • react-native-router-flux v3.2.13
  • react-native v0.22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions