diff --git a/app.json b/app.json
index 9d77ecb..047a02f 100644
--- a/app.json
+++ b/app.json
@@ -7,10 +7,10 @@
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
- "splash":{
- "image":"./assets/images/splash.png",
- "resizeMode":"cover",
- "backgroundColor":"#2f80ed"
+ "splash": {
+ "image": "./assets/images/splash.png",
+ "resizeMode": "cover",
+ "backgroundColor": "#2f80ed"
},
"newArchEnabled": true,
"ios": {
@@ -20,7 +20,8 @@
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
- }
+ },
+ "package": "com.uberclone.riderapp"
},
"web": {
"bundler": "metro",
@@ -32,6 +33,14 @@
],
"experiments": {
"typedRoutes": true
+ },
+ "extra": {
+ "router": {
+ "origin": false
+ },
+ "eas": {
+ "projectId": "c04e1792-9af9-4353-be36-181c9fe79708"
+ }
}
}
}
diff --git a/app/(auth)/sign-up.tsx b/app/(auth)/sign-up.tsx
index f967354..a9ea1e5 100644
--- a/app/(auth)/sign-up.tsx
+++ b/app/(auth)/sign-up.tsx
@@ -49,7 +49,7 @@ const SignUp = () => {
})
if (CompleteSignUp.status === "complete") {
const clerkId=signUp.createdUserId;
- const response= await fetchAPI("http://192.168.29.1:3000/api/users",{
+ const response= await fetchAPI("http://192.168.29.174:3000/api/users",{
method:"POST",
headers:{"Content-Type":"application/json"},
body:JSON.stringify({
diff --git a/app/(root)/book-ride.tsx b/app/(root)/book-ride.tsx
index 5efe7e7..4a0aa1b 100644
--- a/app/(root)/book-ride.tsx
+++ b/app/(root)/book-ride.tsx
@@ -64,7 +64,7 @@ const BookRide = () => {
Pickup Time
- {formatTime(driverDetails?.time || 5 ! )}
+ {formatTime(parseInt(`${driverDetails.time!}`) )}
diff --git a/app/api/user+api.ts b/app/api/user+api.ts
index c960834..9c70e6e 100644
--- a/app/api/user+api.ts
+++ b/app/api/user+api.ts
@@ -4,8 +4,8 @@ export async function POST(request: Request) {
const sql = neon(process.env.DATABASE_URL as string);
const { name, email, clerkId } = await request.json()
if (!name || !email || !clerkId) {
- // return Response.json({ error: "Miss required fields" }, { status: 400 })
- return new Response(JSON.stringify({ error: "Missing required fields" }), { status: 400 });
+ return Response.json({ error: "Miss required fields" }, { status: 400 });
+ // return new Response(JSON.stringify({ error: "Missing required fields" }), { status: 400 });
}
const response = await sql`
diff --git a/components/RideCard.tsx b/components/RideCard.tsx
index 481dd32..736e49d 100644
--- a/components/RideCard.tsx
+++ b/components/RideCard.tsx
@@ -2,10 +2,11 @@ import { icons } from "@/constants";
import { Image, Text, View } from "react-native";
import tw from "twrnc";
import { formatDate, formatTime } from "@/lib/utils";
+import { Ride } from "@/types/type";
const RideCard = ({ ride: { destination_longitude, destination_latitude, origin_address, destination_address, created_at, ride_time, driver,payment_status }, }: { ride: Ride }) => (
-
-
-
+
+
+
@@ -35,7 +36,7 @@ const RideCard = ({ ride: { destination_longitude, destination_latitude, origin_
payment Status
- {payment_status.charAt(0).toUpperCase() + payment_status.slice(1)}
+ {payment_status.charAt(0).toUpperCase() + payment_status.slice(1)}
diff --git a/eas.json b/eas.json
new file mode 100644
index 0000000..bea29dc
--- /dev/null
+++ b/eas.json
@@ -0,0 +1,21 @@
+{
+ "cli": {
+ "version": ">= 16.2.2",
+ "appVersionSource": "remote"
+ },
+ "build": {
+ "development": {
+ "developmentClient": true,
+ "distribution": "internal"
+ },
+ "preview": {
+ "distribution": "internal"
+ },
+ "production": {
+ "autoIncrement": true
+ }
+ },
+ "submit": {
+ "production": {}
+ }
+}