React-native-router-flux: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `TabNavigator`.

Created on 24 May 2016  路  6Comments  路  Source: aksonov/react-native-router-flux

Version

Tell us which versions you are using (react native 0.26 is required for v3):

  • react-native-router-flux v3.26.1
  • react-native v0.26.0

ExceptionsManager.js:61 Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of TabNavigator.

tabs ={true} is not work

needs response from author

Most helpful comment

Just a note on this error, I got it when I didn't define and include an Icon for tabs. Might be worth investigating a clearer error message.
to reproduce:

  <Scene key="books" tabs={true}>  
    <Scene key='catalog' component={Catalog} title="Catalog" />
        ...

to fix:

<Scene key='catalog' component={Catalog} title="Catalog" icon={TabIcon}/>

All 6 comments

Can you reproduce in the Example app? Or paste your config.

@cridenour thank you ,demo is not issue ,my project is upgrade

Just a note on this error, I got it when I didn't define and include an Icon for tabs. Might be worth investigating a clearer error message.
to reproduce:

  <Scene key="books" tabs={true}>  
    <Scene key='catalog' component={Catalog} title="Catalog" />
        ...

to fix:

<Scene key='catalog' component={Catalog} title="Catalog" icon={TabIcon}/>

Can confirm what @ssomnoremac said. The error seems to happen when you don't include an Icon for the tabs.

I've also encountered the same problem

Was this page helpful?
0 / 5 - 0 ratings