Commit f47c67d1 authored by Lihinikaduwa D.N.R.  's avatar Lihinikaduwa D.N.R.

renamed some component

parent a84dab60
......@@ -3,11 +3,11 @@ import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import Colors from '../constants/Colors';
import Home from '../screen/home';
import Home from '../screen/Home';
import Start from '../screen/Start';
import Register from '../screen/auth/Register';
import Login from '../screen/auth/Login';
import Splash from '../screen/splash/splash';
import Splash from '../screen/splash/Splash';
import Color from '../screen/Color';
import Blue from '../screen/activity/Blue';
import Blue2 from '../screen/activity/Blue2';
......
......@@ -4,9 +4,9 @@ import { NavigationContainer } from "@react-navigation/native";
import { createDrawerNavigator, DrawerItem } from "@react-navigation/drawer";
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
import Home from "./home";
import profile from "./profile";
import report from "./report";
import Home from "./Home";
import profile from "./Profile";
import report from "./Report";
import Login from "./auth/Login";
const Drawer = createDrawerNavigator();
......
import React from "react";
import { StyleSheet, View, Text, Pressable } from 'react-native';
export default function profile({ navigation }){
export default function Pofile({ navigation }){
const onPressHandler = () => {
navigation.navigate('Start');
......
......@@ -8,8 +8,8 @@ import {
Image,
} from "react-native";
import home from "./home";
import profile from "./profile";
import Home from "./Home";
import Profile from "./Profile";
import { NavigationContainer } from "@react-navigation/native";
import { createDrawerNavigator } from "@react-navigation/drawer";
......@@ -22,11 +22,11 @@ function sideMenu(){
<NavigationContainer>
<Drawer.Navigator>
<Drawer.Screen name="home"
component={home}
component={Home}
/>
<Drawer.Screen name="profile"
component={profile}
component={Profile}
/>
</Drawer.Navigator>
</NavigationContainer>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment