Waseel: driver app, dispatch, POI suggestions, map fixes

This commit is contained in:
Krikorios
2026-08-25 02:57:49 +03:00
parent 899ca93cd5
commit 1d84003e0a
50 changed files with 3625 additions and 625 deletions
+13 -9
View File
@@ -6,25 +6,29 @@ import Swiper from "react-native-swiper";
import { CustomButton } from "@/components/custom-button";
import { onboarding } from "@/constants";
import { useT } from "@/lib/i18n";
const Welcome = () => {
const swiperRef = useRef<Swiper>(null);
const [activeIndex, setActiveIndex] = useState(0);
const isLastSlide = activeIndex === onboarding.length - 1;
const t = useT();
return (
<SafeAreaView className="flex h-full items-center justify-between bg-white">
<SafeAreaView className="flex h-full items-center justify-between bg-white dark:bg-neutral-950">
<TouchableOpacity
onPress={() => router.push("/(auth)/sign-up")}
className="w-full flex justify-end items-end p-5"
>
<Text className="text-black text-base font-JakartaBold">Skip</Text>
<Text className="text-black dark:text-white text-base font-JakartaBold">
{t("onboarding.skip")}
</Text>
</TouchableOpacity>
<Swiper
ref={swiperRef}
loop={false}
dot={<View className="w-8 h-1 mx-1 bg-[#E2E8F0] rounded-full" />}
dot={<View className="w-8 h-1 mx-1 bg-[#E2E8F0] dark:bg-neutral-700 rounded-full" />}
activeDot={<View className="w-8 h-1 mx-1 bg-[#0286FF] rounded-full" />}
index={activeIndex}
onIndexChanged={setActiveIndex}
@@ -39,13 +43,13 @@ const Welcome = () => {
/>
<View className="flex flex-row items-center justify-center w-full mt-10">
<Text className="text-black text-3xl font-bold mx-10 text-center">
{item.title}
<Text className="text-black dark:text-white text-3xl font-bold mx-10 text-center">
{t(item.titleKey)}
</Text>
</View>
<Text className="text-base font-JakartaSemiBold text-center text-[#858585] mx-10 mt-3">
{item.description}
<Text className="text-base font-JakartaSemiBold text-center text-[#858585] dark:text-neutral-400 mx-10 mt-3">
{t(item.descKey)}
</Text>
</View>
))}
@@ -57,11 +61,11 @@ const Welcome = () => {
? router.push("/(auth)/sign-up")
: swiperRef.current?.scrollBy(1)
}
title={isLastSlide ? "Get Started" : "Next"}
title={isLastSlide ? t("onboarding.getStarted") : t("onboarding.next")}
className="w-11/12 mt-10"
/>
</SafeAreaView>
);
};
export default Welcome;
export default Welcome;