diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/mobilemkv2.iml b/.idea/mobilemkv2.iml
new file mode 100644
index 0000000..24643cc
--- /dev/null
+++ b/.idea/mobilemkv2.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..28db8d6
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app.json b/app.json
index c5d6b8d..eeb2429 100644
--- a/app.json
+++ b/app.json
@@ -4,7 +4,7 @@
"slug": "mobilemkv2",
"version": "1.0.0",
"orientation": "portrait",
- "icon": "./assets/images/icon.png",
+ "icon": "./assets/images/phone.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
"newArchEnabled": true,
@@ -28,9 +28,18 @@
"expo-splash-screen",
{
"image": "./assets/images/splash-icon.png",
- "imageWidth": 200,
- "resizeMode": "contain",
- "backgroundColor": "#ffffff"
+ "resizeMode": "cover",
+ "backgroundColor": "#ffffff",
+ "enableFullScreenImage_legacy": true
+ }
+ ],
+ [
+ "expo-font",
+
+ {
+ "fonts": ["./assets/fonts/SpaceMono-Regular.ttf",
+ "./assets/fonts/Rubik-Bold.ttf"
+ ]
}
]
],
diff --git a/app/(root)/(tabs)/index.tsx b/app/(root)/(tabs)/index.tsx
index 629a95c..c2cbb80 100644
--- a/app/(root)/(tabs)/index.tsx
+++ b/app/(root)/(tabs)/index.tsx
@@ -10,7 +10,7 @@ export default function Index() {
alignItems: "center",
}}
>
- Welcome to mobile.mk
+ Welcome to mobile.mk
SignIn
explore
profile
diff --git a/app/_layout.tsx b/app/_layout.tsx
index 78c341c..1be39ed 100644
--- a/app/_layout.tsx
+++ b/app/_layout.tsx
@@ -1,6 +1,23 @@
-import { Stack } from "expo-router";
+import { SplashScreen, Stack } from "expo-router";
+import { useFonts } from "expo-font";
+import { useEffect } from "react";
+// import * as SplashScreen from "expo-splash-screen";
import "./global.css";
export default function RootLayout() {
+ const [fontLoaded] = useFonts({
+ spaceMono: require("../assets/fonts/SpaceMono-Regular.ttf"),
+ });
+
+ useEffect(() => {
+ if (fontLoaded) {
+ SplashScreen.hideAsync();
+ }
+ }, [fontLoaded]);
+
+ if (!fontLoaded) {
+ return null;
+ }
+
return ;
}
diff --git a/assets/fonts/Rubik-Bold.ttf b/assets/fonts/Rubik-Bold.ttf
new file mode 100644
index 0000000..1a9693d
Binary files /dev/null and b/assets/fonts/Rubik-Bold.ttf differ
diff --git a/assets/fonts/Rubik-ExtraBold.ttf b/assets/fonts/Rubik-ExtraBold.ttf
new file mode 100644
index 0000000..3b1e190
Binary files /dev/null and b/assets/fonts/Rubik-ExtraBold.ttf differ
diff --git a/assets/fonts/Rubik-Light.ttf b/assets/fonts/Rubik-Light.ttf
new file mode 100644
index 0000000..8a5a50a
Binary files /dev/null and b/assets/fonts/Rubik-Light.ttf differ
diff --git a/assets/fonts/Rubik-Medium.ttf b/assets/fonts/Rubik-Medium.ttf
new file mode 100644
index 0000000..f0bd595
Binary files /dev/null and b/assets/fonts/Rubik-Medium.ttf differ
diff --git a/assets/fonts/Rubik-Regular.ttf b/assets/fonts/Rubik-Regular.ttf
new file mode 100644
index 0000000..8b7b632
Binary files /dev/null and b/assets/fonts/Rubik-Regular.ttf differ
diff --git a/assets/fonts/Rubik-SemiBold.ttf b/assets/fonts/Rubik-SemiBold.ttf
new file mode 100644
index 0000000..26f657d
Binary files /dev/null and b/assets/fonts/Rubik-SemiBold.ttf differ
diff --git a/assets/icons/area.png b/assets/icons/area.png
new file mode 100644
index 0000000..f73e8e7
Binary files /dev/null and b/assets/icons/area.png differ
diff --git a/assets/icons/back-arrow.png b/assets/icons/back-arrow.png
new file mode 100644
index 0000000..2a49b9e
Binary files /dev/null and b/assets/icons/back-arrow.png differ
diff --git a/assets/icons/bath.png b/assets/icons/bath.png
new file mode 100644
index 0000000..637f500
Binary files /dev/null and b/assets/icons/bath.png differ
diff --git a/assets/icons/bed.png b/assets/icons/bed.png
new file mode 100644
index 0000000..e71e732
Binary files /dev/null and b/assets/icons/bed.png differ
diff --git a/assets/icons/bell.png b/assets/icons/bell.png
new file mode 100644
index 0000000..a03bc6d
Binary files /dev/null and b/assets/icons/bell.png differ
diff --git a/assets/icons/calendar.png b/assets/icons/calendar.png
new file mode 100644
index 0000000..0c704dd
Binary files /dev/null and b/assets/icons/calendar.png differ
diff --git a/assets/icons/car-park.png b/assets/icons/car-park.png
new file mode 100644
index 0000000..ce7bb66
Binary files /dev/null and b/assets/icons/car-park.png differ
diff --git a/assets/icons/chat.png b/assets/icons/chat.png
new file mode 100644
index 0000000..4da1b23
Binary files /dev/null and b/assets/icons/chat.png differ
diff --git a/assets/icons/cutlery.png b/assets/icons/cutlery.png
new file mode 100644
index 0000000..ce619f7
Binary files /dev/null and b/assets/icons/cutlery.png differ
diff --git a/assets/icons/dog.png b/assets/icons/dog.png
new file mode 100644
index 0000000..c6adf4e
Binary files /dev/null and b/assets/icons/dog.png differ
diff --git a/assets/icons/dumbell.png b/assets/icons/dumbell.png
new file mode 100644
index 0000000..b2d87ca
Binary files /dev/null and b/assets/icons/dumbell.png differ
diff --git a/assets/icons/edit.png b/assets/icons/edit.png
new file mode 100644
index 0000000..00be602
Binary files /dev/null and b/assets/icons/edit.png differ
diff --git a/assets/icons/filter.png b/assets/icons/filter.png
new file mode 100644
index 0000000..192200c
Binary files /dev/null and b/assets/icons/filter.png differ
diff --git a/assets/icons/google.png b/assets/icons/google.png
new file mode 100644
index 0000000..ea52853
Binary files /dev/null and b/assets/icons/google.png differ
diff --git a/assets/icons/heart.png b/assets/icons/heart.png
new file mode 100644
index 0000000..6260f4e
Binary files /dev/null and b/assets/icons/heart.png differ
diff --git a/assets/icons/home.png b/assets/icons/home.png
new file mode 100644
index 0000000..029cbb6
Binary files /dev/null and b/assets/icons/home.png differ
diff --git a/assets/icons/info.png b/assets/icons/info.png
new file mode 100644
index 0000000..51e3309
Binary files /dev/null and b/assets/icons/info.png differ
diff --git a/assets/icons/language.png b/assets/icons/language.png
new file mode 100644
index 0000000..832969f
Binary files /dev/null and b/assets/icons/language.png differ
diff --git a/assets/icons/laundry.png b/assets/icons/laundry.png
new file mode 100644
index 0000000..44f2266
Binary files /dev/null and b/assets/icons/laundry.png differ
diff --git a/assets/icons/location.png b/assets/icons/location.png
new file mode 100644
index 0000000..4bd6436
Binary files /dev/null and b/assets/icons/location.png differ
diff --git a/assets/icons/logout.png b/assets/icons/logout.png
new file mode 100644
index 0000000..d6cd302
Binary files /dev/null and b/assets/icons/logout.png differ
diff --git a/assets/icons/people.png b/assets/icons/people.png
new file mode 100644
index 0000000..fa0221f
Binary files /dev/null and b/assets/icons/people.png differ
diff --git a/assets/icons/person.png b/assets/icons/person.png
new file mode 100644
index 0000000..9dcb37c
Binary files /dev/null and b/assets/icons/person.png differ
diff --git a/assets/icons/phone.png b/assets/icons/phone.png
new file mode 100644
index 0000000..98ea61e
Binary files /dev/null and b/assets/icons/phone.png differ
diff --git a/assets/icons/right-arrow.png b/assets/icons/right-arrow.png
new file mode 100644
index 0000000..971e348
Binary files /dev/null and b/assets/icons/right-arrow.png differ
diff --git a/assets/icons/run.png b/assets/icons/run.png
new file mode 100644
index 0000000..ed86274
Binary files /dev/null and b/assets/icons/run.png differ
diff --git a/assets/icons/search.png b/assets/icons/search.png
new file mode 100644
index 0000000..dc1793f
Binary files /dev/null and b/assets/icons/search.png differ
diff --git a/assets/icons/send.png b/assets/icons/send.png
new file mode 100644
index 0000000..1228d93
Binary files /dev/null and b/assets/icons/send.png differ
diff --git a/assets/icons/shield.png b/assets/icons/shield.png
new file mode 100644
index 0000000..2637e59
Binary files /dev/null and b/assets/icons/shield.png differ
diff --git a/assets/icons/star.png b/assets/icons/star.png
new file mode 100644
index 0000000..bb21f66
Binary files /dev/null and b/assets/icons/star.png differ
diff --git a/assets/icons/swim.png b/assets/icons/swim.png
new file mode 100644
index 0000000..fd7ae2c
Binary files /dev/null and b/assets/icons/swim.png differ
diff --git a/assets/icons/wallet.png b/assets/icons/wallet.png
new file mode 100644
index 0000000..3c68915
Binary files /dev/null and b/assets/icons/wallet.png differ
diff --git a/assets/icons/wifi.png b/assets/icons/wifi.png
new file mode 100644
index 0000000..664941f
Binary files /dev/null and b/assets/icons/wifi.png differ
diff --git a/assets/images/Untitled.jpg b/assets/images/Untitled.jpg
new file mode 100644
index 0000000..94e7d0c
Binary files /dev/null and b/assets/images/Untitled.jpg differ
diff --git a/assets/images/bar-chart.png b/assets/images/bar-chart.png
new file mode 100644
index 0000000..c02f8ba
Binary files /dev/null and b/assets/images/bar-chart.png differ
diff --git a/assets/images/car1.jpg b/assets/images/car1.jpg
new file mode 100644
index 0000000..1246ee2
Binary files /dev/null and b/assets/images/car1.jpg differ
diff --git a/assets/images/car2.jpg b/assets/images/car2.jpg
new file mode 100644
index 0000000..cf4ac29
Binary files /dev/null and b/assets/images/car2.jpg differ
diff --git a/assets/images/card-gradient.png b/assets/images/card-gradient.png
new file mode 100644
index 0000000..22aa748
Binary files /dev/null and b/assets/images/card-gradient.png differ
diff --git a/assets/images/favicon.png b/assets/images/favicon.png
index e75f697..8f3ea8f 100644
Binary files a/assets/images/favicon.png and b/assets/images/favicon.png differ
diff --git a/assets/images/icon.png b/assets/images/icon.png
index a0b1526..cde5778 100644
Binary files a/assets/images/icon.png and b/assets/images/icon.png differ
diff --git a/assets/images/japan.png b/assets/images/japan.png
new file mode 100644
index 0000000..96b6699
Binary files /dev/null and b/assets/images/japan.png differ
diff --git a/assets/images/map.png b/assets/images/map.png
new file mode 100644
index 0000000..5512c9f
Binary files /dev/null and b/assets/images/map.png differ
diff --git a/assets/images/new-york.png b/assets/images/new-york.png
new file mode 100644
index 0000000..f124fc0
Binary files /dev/null and b/assets/images/new-york.png differ
diff --git a/assets/images/no-result.png b/assets/images/no-result.png
new file mode 100644
index 0000000..361171c
Binary files /dev/null and b/assets/images/no-result.png differ
diff --git a/assets/images/onboarding.png b/assets/images/onboarding.png
new file mode 100644
index 0000000..a60b840
Binary files /dev/null and b/assets/images/onboarding.png differ
diff --git a/assets/images/splash.png b/assets/images/splash.png
new file mode 100644
index 0000000..7878d28
Binary files /dev/null and b/assets/images/splash.png differ
diff --git a/assets/images/white-gradient.png b/assets/images/white-gradient.png
new file mode 100644
index 0000000..c782313
Binary files /dev/null and b/assets/images/white-gradient.png differ
diff --git a/constants/data.ts b/constants/data.ts
new file mode 100644
index 0000000..442aaf4
--- /dev/null
+++ b/constants/data.ts
@@ -0,0 +1,165 @@
+import icons from "./icons";
+import images from "./images";
+
+export const cards = [
+ {
+ title: "Card 1",
+ location: "Location 1",
+ price: "$100",
+ rating: 4.8,
+ category: "house",
+ image: images.newYork,
+ },
+ {
+ title: "Card 2",
+ location: "Location 2",
+ price: "$200",
+ rating: 3,
+ category: "house",
+ image: images.japan,
+ },
+ {
+ title: "Card 3",
+ location: "Location 3",
+ price: "$300",
+ rating: 2,
+ category: "flat",
+ image: images.newYork,
+ },
+ {
+ title: "Card 4",
+ location: "Location 4",
+ price: "$400",
+ rating: 5,
+ category: "villa",
+ image: images.japan,
+ },
+];
+
+export const featuredCards = [
+ {
+ title: "Featured 1",
+ location: "Location 1",
+ price: "$100",
+ rating: 4.8,
+ image: images.newYork,
+ category: "house",
+ },
+ {
+ title: "Featured 2",
+ location: "Location 2",
+ price: "$200",
+ rating: 3,
+ image: images.japan,
+ category: "flat",
+ },
+];
+
+export const categories = [
+ { title: "All", category: "All" },
+ { title: "Houses", category: "House" },
+ { title: "Condos", category: "Condos" },
+ { title: "Duplexes", category: "Duplexes" },
+ { title: "Studios", category: "Studios" },
+ { title: "Villas", category: "Villa" },
+ { title: "Apartments", category: "Apartments" },
+ { title: "Townhomes", category: "Townhomes" },
+ { title: "Others", category: "Others" },
+];
+
+export const settings = [
+ {
+ title: "My Bookings",
+ icon: icons.calendar,
+ },
+ {
+ title: "Payments",
+ icon: icons.wallet,
+ },
+ {
+ title: "Profile",
+ icon: icons.person,
+ },
+ {
+ title: "Notifications",
+ icon: icons.bell,
+ },
+ {
+ title: "Security",
+ icon: icons.shield,
+ },
+ {
+ title: "Language",
+ icon: icons.language,
+ },
+ {
+ title: "Help Center",
+ icon: icons.info,
+ },
+ {
+ title: "Invite Friends",
+ icon: icons.people,
+ },
+];
+
+export const facilities = [
+ {
+ title: "Laundry",
+ icon: icons.laundry,
+ },
+ {
+ title: "Car Parking",
+ icon: icons.carPark,
+ },
+ {
+ title: "Sports Center",
+ icon: icons.run,
+ },
+ {
+ title: "Cutlery",
+ icon: icons.cutlery,
+ },
+ {
+ title: "Gym",
+ icon: icons.dumbell,
+ },
+ {
+ title: "Swimming pool",
+ icon: icons.swim,
+ },
+ {
+ title: "Wifi",
+ icon: icons.wifi,
+ },
+ {
+ title: "Pet Center",
+ icon: icons.dog,
+ },
+];
+
+export const gallery = [
+ {
+ id: 1,
+ image: images.newYork,
+ },
+ {
+ id: 2,
+ image: images.japan,
+ },
+ {
+ id: 3,
+ image: images.newYork,
+ },
+ {
+ id: 4,
+ image: images.japan,
+ },
+ {
+ id: 5,
+ image: images.newYork,
+ },
+ {
+ id: 6,
+ image: images.japan,
+ },
+];
diff --git a/constants/icons.ts b/constants/icons.ts
new file mode 100644
index 0000000..13d3775
--- /dev/null
+++ b/constants/icons.ts
@@ -0,0 +1,69 @@
+import google from "../assets/icons/google.png";
+import home from "../assets/icons/home.png";
+import search from "../assets/icons/search.png";
+import person from "../assets/icons/person.png";
+import bell from "@/assets/icons/bell.png";
+import filter from "@/assets/icons/filter.png";
+import star from "@/assets/icons/star.png";
+import heart from "@/assets/icons/heart.png";
+import backArrow from "@/assets/icons/back-arrow.png";
+import calendar from "@/assets/icons/calendar.png";
+import info from "@/assets/icons/info.png";
+import language from "@/assets/icons/language.png";
+import logout from "@/assets/icons/logout.png";
+import people from "@/assets/icons/people.png";
+import shield from "@/assets/icons/shield.png";
+import wallet from "@/assets/icons/wallet.png";
+import rightArrow from "@/assets/icons/right-arrow.png";
+import send from "@/assets/icons/send.png";
+import bed from "@/assets/icons/bed.png";
+import bath from "@/assets/icons/bath.png";
+import area from "@/assets/icons/area.png";
+import chat from "@/assets/icons/chat.png";
+import phone from "@/assets/icons/phone.png";
+import carPark from "@/assets/icons/car-park.png";
+import cutlery from "@/assets/icons/cutlery.png";
+import dog from "@/assets/icons/dog.png";
+import dumbell from "@/assets/icons/dumbell.png";
+import laundry from "@/assets/icons/laundry.png";
+import run from "@/assets/icons/run.png";
+import swim from "@/assets/icons/swim.png";
+import wifi from "@/assets/icons/wifi.png";
+import location from "@/assets/icons/location.png";
+import edit from "@/assets/icons/edit.png";
+
+export default {
+ google,
+ home,
+ search,
+ person,
+ bell,
+ filter,
+ star,
+ heart,
+ backArrow,
+ calendar,
+ info,
+ language,
+ logout,
+ people,
+ shield,
+ wallet,
+ rightArrow,
+ send,
+ bed,
+ bath,
+ area,
+ chat,
+ phone,
+ carPark,
+ cutlery,
+ dog,
+ dumbell,
+ laundry,
+ run,
+ swim,
+ wifi,
+ location,
+ edit,
+};
diff --git a/constants/images.ts b/constants/images.ts
new file mode 100644
index 0000000..9c8fd61
--- /dev/null
+++ b/constants/images.ts
@@ -0,0 +1,18 @@
+// @ts-ignore
+// import onboarding from "@/assets/images/onboarding.png";
+// import avatar from "@/assets/images/avatar.png";
+// import newYork from "@/assets/images/new-york.png";
+// import japan from "@/assets/images/japan.png";
+// import cardGradient from "@/assets/images/card-gradient.png";
+// import barChart from "@/assets/images/bar-chart.png";
+// import whiteGradient from "@/assets/images/white-gradient.png";
+// import map from "@/assets/images/map.png";
+// import noResult from "@/assets/images/no-result.png";
+import car1 from "../assets/images/car1.jpg";
+// @ts-ignore
+import car2 from '../assets/images/car2.jpg';
+
+export default {
+ car1,
+ car2,
+};
diff --git a/image.d.ts b/image.d.ts
new file mode 100644
index 0000000..43fa0b0
--- /dev/null
+++ b/image.d.ts
@@ -0,0 +1,9 @@
+declare module "*.png" {
+ const value: any;
+ export default value;
+}
+
+declare module "*.jpg" {
+ const value: any;
+ export default value;
+}
\ No newline at end of file
diff --git a/notes.md b/notes.md
new file mode 100644
index 0000000..c937919
--- /dev/null
+++ b/notes.md
@@ -0,0 +1 @@
+splash screen not showing