Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Invariant Violation: The navigation prop is missing for this navigator. In
- react-navigation 3 you must set up your app container directly. More info:
- https://reactnavigation.org/docs/en/app-containers.html
- import React, {Component} from 'react';
- import { StyleSheet, Text, View } from 'react-native';
- import { createStackNavigator } from 'react-navigation';
- import Login from './view/login.js'
- import SignUp from './view/signup.js'
- const RootStack = createStackNavigator(
- {
- Home: {
- screen: Login
- },
- Signup: {
- screen: SignUp
- }
- },
- {
- initialRouteName: 'Home'
- }
- );
- export default class App extends React.Component {
- render() {
- return <RootStack />;
- }
- }
Add Comment
Please, Sign In to add comment