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

Nesing Navigators result in infinite loop #20

Open
ITpandaffm opened this issue Sep 27, 2017 · 1 comment
Open

Nesing Navigators result in infinite loop #20

ITpandaffm opened this issue Sep 27, 2017 · 1 comment

Comments

@ITpandaffm
Copy link

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

@alejomendoza
Copy link

screen shot 2017-10-04 at 7 03 24 am

+1

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

No branches or pull requests

2 participants