Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Nesing Navigators result in infinite loop #20

@ITpandaffm

Description

@ITpandaffm

react-native version: 0.48.3
react-native-cli: 2.0.1

i rendered a StackNavigator as the top-level navigator and i need nest a Tabnavigator.
But it crashed because of a infinite loop: " Cannot read propery 'forEach' of undefined", no matter i nesting tabNavigator in a Component or in a screen.
and it works perfect if i take off the react-navigation-addons, so i m sure it was the addons .

btw: at first when i was new to ReacNavigation, i didn't config the nesting navigator properly ,LOL.

i nest a TabNavigator in a component directly without passing navigation as props and set the router to overridden the wrappingComponentScreen's router.

like this:

<View><MainScreenTabNavigator /></View>

and the child tab ** will be rendered twice .**

anyway, it leads me to find the issue at last. lol

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