Skip to content

Route issue in mode dev=true #111

@silverio

Description

@silverio

Hi guys, I need some help here. I am using v2.0.5. And when I try to open this Route:
<Route name="tab3" schema="tab" tabicon={pricetags} component={Swiper} hideTabBar={true} hideNavBar={true}/>
In dev=true , I get this error:
Image In this environment the target of assign MUST be an object.This error is a performance optimization and not spec compliant

When I run the app in dev=false it works fine.

Here is the MainRouting code:

export default class MainRouting extends React.Component {
    render() {
        return (
            <Router hideNavBar={true} >
                <Schema name="modal" sceneConfig={Navigator.SceneConfigs.FloatFromBottom}/>
                <Schema name="default" sceneConfig={Navigator.SceneConfigs.FloatFromRight}/>
                <Schema name="withoutAnimation"/>
                <Schema name="tab" type="switch" icon={TabIcon} />

                <Route name="carrousel" component={Carrousel} initial={true} wrapRouter={true} title="Carrousel" hideNavBar={true}/>
                <Route name="signup" component={SignUp} title="Signup" showNavigationBar={true}/>
                <Route name="login" schema="modal" component={Login} title="Login" hideNavBar={false}/>

                <Route name="tabbar" >
                    <Router footer={TabBar} showNavigationBar={false} >
                        <Route name="tab1" schema="tab" tabicon={profile}>
                            <Router>
                                <Route name="tab1_1" component={TabView} title="Profile" />
                                <Route name="tab1_2" component={TabView} title="Tab #1_2" />
                            </Router>
                          </Route>
                        <Route name="tab2" schema="tab" tabicon={bag}>
                          <Router>
                                  <Route name="tab2_1" component={TabView} title="Cart"/>
                                  <Route name="tab2_2" component={TabView} title="Cart2"/>
                          </Router>
                        </Route>

                        <Route name="tab3" schema="tab" tabicon={pricetags} component={Swiper} hideTabBar={true} hideNavBar={true}/>

                        <Route name="tab4" schema="tab" tabicon={heart}>
                          <Router>
                                  <Route name="tab4_1" component={TabView} title="hello"/>
                        </Router>
                      </Route>
                      <Route name="tab5" schema="tab" tabicon={chat}>
                          <Router>
                                  <Route name="tab5_1" schema="tab" title="Tab #5" component={TabView} />
                          </Router>
                        </Route>
                    </Router>
                </Route>
            </Router>
        );
    }

}

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