React Native Error "React Native Error 'NAVIGATE' with payload {“name”:“LoginScreen”} was not handled by any navigator. Do you have a screen named 'LoginScreen'?

Anyone know this error?

and here is my code

import React, { memo } from 'react';

import Background from '../components/Background';

import Logo from '../components/Logo';

import Header from '../components/Header';

import Paragraph from '../components/Paragraph';

import Button from '../components/Button';

import {View, TouchableHighlight, TouchableOpacity} from 'react-native';

import {NavigationContainer} from '@react-navigation/native';

import { createMaterialBottomTabNavigator} from '@react-navigation/material-bottom-tabs';

import {




} from 'react-native-paper';

import LoginScreen from './screen/LoginScreen';

function Home () {

  return (

    <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>

        <Header>Welcome, Borrower.</Header>


          Apply To Secure Your Loans


        <Button mode="contained" onPress={() => navigation.navigate('Apply')}>

      Apply Loan 


            <View style={{ marginVertical: 20 }}></View>

            <TouchableHighlight onPress={() => this.viewLoans()}>


                    <Text style={{color: '#1E90FF'}}>View Loan History</Text>







function HistoryScreen ()  {

  return (

    <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>

      <Header>Loan History</Header>

      <Button mode="contained" onPress={() => navigation.navigate('History')}>

      Check History





const ProfileScreen = ({navigation}) => {

return (

<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>



              uri: '',




          <View style={{marginVertical: 20}}>

            <Title>Name :</Title> 

            <Title>Email :</Title>

            <Title>Password :</Title>

            <Title>Phone Number : </Title>


<Button mode="contained" onPress={() => navigation.navigate('Profile')}>

            Change Profile


<Button mode="contained" onPress={() => navigation.navigate("LoginScreen")}>

            Log Out





const Tab = createMaterialBottomTabNavigator();

export default function Dashboard() {

  return (


      <Tab.Navigator initialRouteName="Home">

        <Tab.Screen name="Home" component={Home} />

        <Tab.Screen name="History" component={HistoryScreen} />

        <Tab.Screen name="Profile"  component={ProfileScreen}/>






Hey Jovita,

nice to meet you! :slightly_smiling_face:

It would be awesome to see a (working) example of your project on codesandbox, so that we can fiddle around with it.

If you want to post in the forum,
please use the “preformatted text” tool in the editor ( </> ) to add code.

Looking forward to seeing it!

thank you for your suggestion :slight_smile: