-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - fix builds * - refactoring and bug fixing * - refactoring driver app to use components from morrotaxi shared components * - refactoring driver app to use shared components * - refactoring driver app to use shared mapview * - refactoring
- Loading branch information
1 parent
7a37db4
commit b2ba784
Showing
192 changed files
with
1,585 additions
and
4,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+653 KB
(1200%)
apps/driver-app/android/app/src/main/res/drawable-hdpi/splashscreen_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+653 KB
(1200%)
apps/driver-app/android/app/src/main/res/drawable-mdpi/splashscreen_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+653 KB
(1200%)
apps/driver-app/android/app/src/main/res/drawable-xhdpi/splashscreen_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+653 KB
(1200%)
apps/driver-app/android/app/src/main/res/drawable-xxhdpi/splashscreen_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+653 KB
(1200%)
apps/driver-app/android/app/src/main/res/drawable-xxxhdpi/splashscreen_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+20.3 KB
(350%)
apps/driver-app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+20.7 KB
(360%)
apps/driver-app/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+19.7 KB
(290%)
apps/driver-app/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+9.8 KB
(290%)
apps/driver-app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+9.92 KB
(300%)
apps/driver-app/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+9.3 KB
(250%)
apps/driver-app/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+34.9 KB
(410%)
apps/driver-app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+35.3 KB
(420%)
apps/driver-app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+34.1 KB
(340%)
apps/driver-app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+76.7 KB
(530%)
apps/driver-app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+76.9 KB
(540%)
apps/driver-app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+75.6 KB
(440%)
apps/driver-app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+133 KB
(640%)
apps/driver-app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+134 KB
(650%)
apps/driver-app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+132 KB
(540%)
apps/driver-app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<resources> | ||
<color name="splashscreen_background">#ffffff</color> | ||
<color name="splashscreen_background">#181A20</color> | ||
<color name="iconBackground">#ffffff</color> | ||
<color name="colorPrimary">#023c69</color> | ||
<color name="colorPrimaryDark">#ffffff</color> | ||
<color name="colorPrimaryDark">#181A20</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
import LoginForm from '@/src/components/login-form'; | ||
import ScrollableFormContainer from '@/src/components/scrollable-form-container'; | ||
import { useAppDispatch } from '@/src/hooks/use-app-dispatch'; | ||
import { RootState } from '@/src/store'; | ||
import { loginDriver } from '@/src/store/slices/auth-slice'; | ||
import { useRouter } from 'expo-router'; | ||
import { | ||
LoginForm, | ||
ScrollableFormContainer, | ||
ILoginUser | ||
} from 'react-native-morro-taxi-rn-components'; | ||
import { useSelector } from 'react-redux'; | ||
|
||
export default function Login() { | ||
const dispatch = useAppDispatch(); | ||
const isLoading = useSelector((state: RootState) => state.auth.loading); | ||
const router = useRouter(); | ||
|
||
const onLoginUser = (data: ILoginUser) => { | ||
dispatch(loginDriver({ ...data })); | ||
}; | ||
|
||
const onGoToRegister = () => { | ||
router.navigate('/signup'); | ||
}; | ||
|
||
return ( | ||
<ScrollableFormContainer> | ||
<LoginForm /> | ||
<LoginForm | ||
onGoToRegister={onGoToRegister} | ||
isLoading={isLoading} | ||
loginUser={onLoginUser} | ||
/> | ||
</ScrollableFormContainer> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
import MapView from '@/src/components/map-view'; | ||
import PermissionBlocker from '@/src/components/permission-blocker'; | ||
import { PermissionBlocker } from 'react-native-morro-taxi-rn-components'; | ||
import RideRequestDashboard from '@/src/components/ride-request-dashboard'; | ||
import StatusCard from '@/src/components/status-card'; | ||
import useForegroundLocation from '@/src/hooks/use-foreground-location'; | ||
import { View } from 'react-native'; | ||
|
||
export default function Map() { | ||
// useBackgroundLocation(); // TODO: Implement useBackgroundLocation hook | ||
useForegroundLocation(); | ||
|
||
return ( | ||
<View style={{ flex: 1 }}> | ||
<PermissionBlocker> | ||
<StatusCard /> | ||
<MapView /> | ||
<RideRequestDashboard /> | ||
</PermissionBlocker> | ||
</View> | ||
<PermissionBlocker | ||
title="Permissions Required" | ||
subtitle="To receive ride requests and navigate to passengers, we need access to notifications, location, and background location. Please enable these permissions in your settings to start accepting rides." | ||
alertTitle="Permissions Required" | ||
alertSubtitle="We need location, background location, and notification permissions to provide ride services." | ||
requireLocation | ||
requireNotification | ||
requireBackgroundLocation | ||
> | ||
<StatusCard /> | ||
<MapView /> | ||
<RideRequestDashboard /> | ||
</PermissionBlocker> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
import ScrollableFormContainer from '@/src/components/scrollable-form-container'; | ||
import SignUpForm from '@/src/components/sign-up-form'; | ||
import { useAppDispatch } from '@/src/hooks/use-app-dispatch'; | ||
import { RootState } from '@/src/store'; | ||
import { registerDriver } from '@/src/store/slices/auth-slice'; | ||
import { useRouter } from 'expo-router'; | ||
import { | ||
IRegisterUser, | ||
ScrollableFormContainer, | ||
SignUpForm | ||
} from 'react-native-morro-taxi-rn-components'; | ||
import { useSelector } from 'react-redux'; | ||
|
||
export default function SignUp() { | ||
const dispatch = useAppDispatch(); | ||
const isLoading = useSelector((state: RootState) => state.auth.loading); | ||
const router = useRouter(); | ||
|
||
const onRegisterUser = (data: IRegisterUser) => { | ||
dispatch(registerDriver({ ...data })); | ||
}; | ||
|
||
const onGoToLogin = () => { | ||
router.navigate('/login'); | ||
}; | ||
|
||
return ( | ||
<ScrollableFormContainer> | ||
<SignUpForm /> | ||
<SignUpForm | ||
isLoading={isLoading} | ||
registerUser={onRegisterUser} | ||
onGoToLogin={onGoToLogin} | ||
/> | ||
</ScrollableFormContainer> | ||
); | ||
} | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.