0
Error (Undefined is not a Function (near '...(0, _reactNavigation.Switchnavigator)...')) when compiling application.
I need that when logging in is directed to the screen "Main".
import React from 'react'
import { StyleSheet, Platform, Image, Text, View } from 'react-native'
import { SwitchNavigator } from 'react-navigation'
// import the different screens
import Loading from './Loading'
import SignUp from './SignUp'
import Login from './Login'
import Main from './Main'
// create our app's navigation stack
const App = SwitchNavigator(
{
Loading,
SignUp,
Login,
Main
},
{
initialRouteName: 'Loading'
}
)
export default App
you want it to be redirected from where? where is the code you are trying to redirect? which function is calling?
– kivul