DickyT / react-native-tabbar-navigator

(aka React Native Tanner Navigator) A component which builds excellent Navigator + TabBar based application, have a good solution for implementing hidesBottomBarWhenPushed in iOS.
97 stars 29 forks source link

Keep getting Warning: forceUpdate(...) when I do this.props.navcomponent.setNavItems #21

Closed gholevas closed 8 years ago

gholevas commented 8 years ago

Warning: forceUpdate(...): Cannot update during an existing state transition (such as within render). Render methods should be a pure function of props and state.

Is there another a way to update the top nav bar?

gholevas commented 8 years ago

moving this from the constructor to componentDidMount gets rid of the warning