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'; ...@@ -3,11 +3,11 @@ import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack'; import {createNativeStackNavigator} from '@react-navigation/native-stack';
import Colors from '../constants/Colors'; import Colors from '../constants/Colors';
import Home from '../screen/home'; import Home from '../screen/Home';
import Start from '../screen/Start'; import Start from '../screen/Start';
import Register from '../screen/auth/Register'; import Register from '../screen/auth/Register';
import Login from '../screen/auth/Login'; import Login from '../screen/auth/Login';
import Splash from '../screen/splash/splash'; import Splash from '../screen/splash/Splash';
import Color from '../screen/Color'; import Color from '../screen/Color';
import Blue from '../screen/activity/Blue'; import Blue from '../screen/activity/Blue';
import Blue2 from '../screen/activity/Blue2'; import Blue2 from '../screen/activity/Blue2';
......
...@@ -4,9 +4,9 @@ import { NavigationContainer } from "@react-navigation/native"; ...@@ -4,9 +4,9 @@ import { NavigationContainer } from "@react-navigation/native";
import { createDrawerNavigator, DrawerItem } from "@react-navigation/drawer"; import { createDrawerNavigator, DrawerItem } from "@react-navigation/drawer";
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5'; import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
import Home from "./home"; import Home from "./Home";
import profile from "./profile"; import profile from "./Profile";
import report from "./report"; import report from "./Report";
import Login from "./auth/Login"; import Login from "./auth/Login";
const Drawer = createDrawerNavigator(); const Drawer = createDrawerNavigator();
......
import React from "react"; import React from "react";
import { StyleSheet, View, Text, Pressable } from 'react-native'; import { StyleSheet, View, Text, Pressable } from 'react-native';
export default function profile({ navigation }){ export default function Pofile({ navigation }){
const onPressHandler = () => { const onPressHandler = () => {
navigation.navigate('Start'); navigation.navigate('Start');
......
...@@ -8,8 +8,8 @@ import { ...@@ -8,8 +8,8 @@ import {
Image, Image,
} from "react-native"; } from "react-native";
import home from "./home"; import Home from "./Home";
import profile from "./profile"; import Profile from "./Profile";
import { NavigationContainer } from "@react-navigation/native"; import { NavigationContainer } from "@react-navigation/native";
import { createDrawerNavigator } from "@react-navigation/drawer"; import { createDrawerNavigator } from "@react-navigation/drawer";
...@@ -22,11 +22,11 @@ function sideMenu(){ ...@@ -22,11 +22,11 @@ function sideMenu(){
<NavigationContainer> <NavigationContainer>
<Drawer.Navigator> <Drawer.Navigator>
<Drawer.Screen name="home" <Drawer.Screen name="home"
component={home} component={Home}
/> />
<Drawer.Screen name="profile" <Drawer.Screen name="profile"
component={profile} component={Profile}
/> />
</Drawer.Navigator> </Drawer.Navigator>
</NavigationContainer> </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