My authentification system doesn’t redirect after logging in

So basically i have this LoginScreen.js

import React, { useRef,useState } from 'react';
import { View, Text, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
import axios from 'axios';
import { useNavigation } from '@react-navigation/native';
import { Navigation } from 'react-native-navigation';

const LoginScreen = () => {
  const emailInputRef = useRef(null);
  const navigation = useNavigation();

  const [username, setUsername] = React.useState('');
  const [password, setPassword] = React.useState('');
  const [isLeftHovered, setIsLeftHovered] = React.useState(false);
  const [isRightHovered, setIsRightHovered] = React.useState(false);
  const handleLogin = async () => {
    try {
      const response = await axios.post('http://localhost:5000/api/users/login', {
        username,
        password,
      });
      if (emailInputRef.current) {
        emailInputRef.current.setCustomValidity('');
      }
      Navigation.setRoot({
        root: {
          stack: {
            children: [
              {
                component: {
                  name: 'Hello',
                },
              },
            ],
          },
        },
      });

     // navigation.replace('Login');
      console.log('Registration successful:', response.data);
    } catch (error) {
      if (error.response) {
        if (error.response.data === 'noAccount'){
          if (emailInputRef.current) {
            emailInputRef.current.setCustomValidity('Email or username doesn't exist.');
            emailInputRef.current.reportValidity(); // Show the custom validity message immediately
          }
        }
        } else {  
        console.error('Error registering:', error);
      }
    }
  };

  return (
    <View style={styles.container}>
      //code of form
    </View>
  );
};

const styles = StyleSheet.create({
//code
});

export default LoginScreen;

I have created this navigation.js

// navigation.js
import { Navigation } from 'react-native-navigation';
import LoginScreen from './LoginScreen';
import Hello from './Hello';

export const registerScreens = () => {
  Navigation.registerComponent('Login', () => LoginScreen);
  Navigation.registerComponent('Hello', () => Hello);
};

export const startApp = () => {
  Navigation.setRoot({
    root: {
      stack: {
        children: [
          {
            component: {
              name: 'Login',
            },
          },
        ],
      },
    },
  });
};

and i have this in the back end using node.js

router.post('/login', async (req, res) => {
    const { username, password} = req.body;
    try {
      // Check if email already exists
      const existingUser = await User.findByEmail(username);
      if (existingUser) {
        if (existingUser.password === password)
            res.status(201).send('Logged in');
      } else {
        const existingUser1 = await User.findByUserName(username);
        if (existingUser1) {
            if (existingUser1.password === password)
                res.status(201).send('Logged in');
        } else {
            return res.status(400).send('noAccount');
        }
      }
    } catch (error) {
      console.error('Error Logging in', error);
      res.status(500).send('Error Logging in');
    }
  });

my problem now first of all my code is not working at all as whenever i run my code i get this error in console

C:UsersMSIDocumentsenisprojetstagemy-react-native-web-appnode_modulesreact-native-navigationlibdistsrccomponentsModal.js:9 Uncaught TypeError: (0 , react_native_1.requireNativeComponent) is not a function

i have tried to after logging in , i want to redirect to a page named as Hello, using stack will not change the URL path , as it says localhost only i want to make it something like localhost/hello ,
how to do it guys please

I have tried using navigation from react-native-navigation but it makes my code crush
I have expected to have an url like localhost/dashboard , and render the page Hello.js but nothing works

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật