react-navigation-addons icon indicating copy to clipboard operation
react-navigation-addons copied to clipboard

Nesing Navigators result in infinite loop

Open ITpandaffm opened this issue 8 years ago • 1 comments

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

ITpandaffm avatar Sep 27 '17 05:09 ITpandaffm

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

alejomendoza avatar Oct 04 '17 12:10 alejomendoza