You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error:
Unhandled JS Exception: Requiring module "index.js", which threw an exception: Error: The component for route 'TabNavigation' must be a React component. For example:
import MyScreen from './MyScreen';
...
TabNavigation: MyScreen,
}
You can also use a navigator:
import MyNavigator from './MyNavigator';
...
TabNavigation: MyNavigator,
}
The second screen 'TabNavigation' throws the error,
If I copy paste the entire TabNavigation to the createStackNavigator "TabNavigation: ...." then the second screen inside my createBottomTabNavigator throws the error.
I can't get any second screen to work.
The text was updated successfully, but these errors were encountered:
Error:
Unhandled JS Exception: Requiring module "index.js", which threw an exception: Error: The component for route 'TabNavigation' must be a React component. For example:
import MyScreen from './MyScreen';
...
TabNavigation: MyScreen,
}
You can also use a navigator:
import MyNavigator from './MyNavigator';
...
TabNavigation: MyNavigator,
}
I have a createBottomTabNavigator:
const TabNavigation = createBottomTabNavigator({
'Customer': CustomerScreen,
'Kiosk': AppScreen,
},
export default TabNavigation
//And in AppContainer.js
import { createStackNavigator, createAppContainer, createBottomTabNavigator } from 'react-navigation';
import AuthNavigation from './AuthNavigation';
import TabNavigation from './TabNavigation'
const AppNavigation = createStackNavigator({
AuthNavigation: AuthNavigation,
TabNavigation: TabNavigation,
}
);
const AppContainer = createAppContainer(AppNavigation)
export default AppContainer;
The second screen 'TabNavigation' throws the error,
If I copy paste the entire TabNavigation to the createStackNavigator "TabNavigation: ...." then the second screen inside my createBottomTabNavigator throws the error.
I can't get any second screen to work.
The text was updated successfully, but these errors were encountered: