Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined is not an object(evaluating '_ref.routes') #7

Closed
hyhajnal opened this issue May 20, 2017 · 5 comments
Closed

undefined is not an object(evaluating '_ref.routes') #7

hyhajnal opened this issue May 20, 2017 · 5 comments

Comments

@hyhajnal
Copy link

hyhajnal commented May 20, 2017

在新添一个tab后就报错,不知为何,google没搜到这个问题,
只在react-navigation看到这个issue1408
但还是不知道怎么解决,求助~

const HomeNavigator = TabNavigator(
  {
    Home: { screen: Home },
    Account: { screen: Account },
    Msg: { screen: Msg}, //新添一个tab
  },
  {
    tabBarComponent: TabBarBottom,
    tabBarPosition: 'bottom',
    swipeEnabled: false,
    animationEnabled: false,
    lazyLoad: true,
  },
)

@nihgwu
Copy link
Owner

nihgwu commented May 20, 2017

I can't reproduce it, perhaps there is something wrong with your Msg component

@nihgwu nihgwu closed this as completed May 20, 2017
@vance-liu
Copy link

vance-liu commented Jun 12, 2017

+1 , same error, I just change TabNavigator options.

const HomeNavigator = TabNavigator(
  {
    Home: { screen: Home },
    Account: { screen: Account },
    Account2: { screen: Account },
  },
  {
    tabBarComponent: TabBarBottom,
    tabBarPosition: 'bottom',
    swipeEnabled: false,
    animationEnabled: false,
    lazyLoad: true,
  }
)

like link , When I Debug JS Remotely

@vance-liu
Copy link

重新编译再次试了下,感觉是dva热加载的问题,不知道有没有解决方案

@vance-liu
Copy link

@nihgwu

@nihgwu
Copy link
Owner

nihgwu commented Jun 13, 2017

@vance-liu I don't think so, and I don't know how to fix it, I can't reproduce it, seems someone using react-navigation also be bothered by this problem, I don't think it's a issue from dva

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

No branches or pull requests

3 participants