Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

Using with react-router-flux where put sidemenu component #352

Open
francoro opened this issue Jul 24, 2018 · 0 comments
Open

Using with react-router-flux where put sidemenu component #352

francoro opened this issue Jul 24, 2018 · 0 comments

Comments

@francoro
Copy link

I put it here:

<Provider store={store}>
      <SideMenu menu={<Menu navigator={navigator}/>}
            isOpen={true}
            menuPosition="right"
            >
        <Router navigationBarStyle={{ backgroundColor: '#262628'}} titleStyle={{color: "#FFF"}}>
          <Scene key="root" hideNavBar>
            {/* Tab Container */}
            <Scene
              key="login"
              component={Login}
              initial
            >

            </Scene>
            <Scene
              key="tabbar"
              tabs={true}
              tabBarStyle={{ backgroundColor: '#262628' }}
              tabBarPosition={'bottom'}
              showLabel = {false}
            >

              <Scene key="tabhome"  renderRightButton={<ButtonsHome/>} title="Publicaciones" icon={TabIcon} iconName="md-home">
                <Scene
                  key="home"
                  component={Home}
                />
              </Scene>



              <Scene key="tabprofile" title="Perfil" icon={TabIcon} iconName="md-person">
                <Scene
                  key="profile"
                  component={Profile}
                />
              </Scene>
            </Scene>
          </Scene>
        </Router>
        </SideMenu>
      </Provider>

But i get this error

Warning: Can't call setState (or forceUpdate) on an unmounted component. 
This is a no-op, but it indicates a memory leak in your application. To 
fix, cancel all subscriptions and asynchronous tasks in the 
componentWillUnmount method.
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

1 participant