DEV Community

Discussion on: Let's Create A Custom Animated Tab Bar With React Native

Collapse
 
lalitgvp2 profile image
The third deadly sin⚡️

The component for route 'tabBarOptions' must be a React component. For example:

import MyScreen from './MyScreen';
...
tabBarOptions: MyScreen,
}

You can also use a navigator:

import MyNavigator from './MyNavigator';
...
tabBarOptions: MyNavigator,
}

This is the error that I got trying to run this code. Any ideas?

Collapse
 
anujcrsdb04 profile image
Anuj Sharma

You are not implementing the class that you are using or the name and location of the class must be wrong.

Collapse
 
hrastnik profile image
Mateo Hrastnik

You probably missed something. Check the code I provided for more info.