React Native Invariant Violation: View config
Solution 1:
The name of any component must be capitalized. In your name, the component "navigation" is not capitalized. It should be "Navigation".
Solution 2:
In react native the component's name should begin with capital letter, so it will be:
const Navigation = StackNavigator({
Home: { screen: HomeScreen },
});
and call it with capital:
export default class App extends Component<{}> {
render() {
return <Navigation/>;
}
}