Commit Graph
10 Commits
Author SHA1 Message Date
KrikoriosandClaude Opus 5 4e0a7cca51 Fix map failing to render, dedupe expo-crypto
The home screen passed its FlatList header as `ListHeaderComponent={() =>
(...)}`. VirtualizedList renders a function-valued header prop as
`<HeaderComponent />`, so a fresh arrow function on each render is a fresh
element type: React unmounted the entire header subtree — MapView included —
and mounted a new one. Home re-renders several times on mount (useFetch
loading->data, useUserLocation pending->granted, session resolve), and
recreating the Android GoogleMap surface each time left it grey with the
Google logo and tiles that never finished loading.

Pass the header as an element instead so the type stays stable and MapView
mounts once. The same `() => (...)` pattern in ListEmptyComponent here, and in
rides.tsx and confirm-ride.tsx, cost needless remounts of list chrome and
DriverCards; fixed alongside.

Also pin expo-crypto to ~13.0.2. It was ^57.0.1 — a wrong-major native module
for SDK 51 that nothing in the app imports. npm hoisted it to the top level
and gave expo-auth-session a nested 13.0.2 to satisfy its ~13.0.0 constraint,
leaving two copies of one native module in the tree for autolinking to choose
between.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-24 00:32:34 +03:00
Krikorios c16c335481 docs: replace Stripe setup with Areeba in README 2026-08-22 15:59:45 +03:00
github-actions[bot] 68272e41d6 docs: update dependencies and folder structure in README 2026-02-23 05:23:05 +00:00
github-actions[bot] 22727e3c9b docs: update dependencies and folder structure in README 2026-02-23 05:17:04 +00:00
Sanidhya Kumar Verma 8809c31068 ci: add workflow to auto-update dependencies and folder structure in README 2026-02-23 10:46:31 +05:30
Sanidhya Kumar Verma ba89fcf1ad Update README.md 2026-02-19 22:44:25 +05:30
Sanidhya Kumar Verma ed8aefaf1c Update Twitter link to new X.com format 2026-02-13 10:06:54 +05:30
Sanidhya Kumar Verma 730471b731 Update README.md 2026-01-10 16:37:25 +05:30
Sanidhya Kumar Verma e69adb70b1 README completed 2024-09-06 05:56:01 +00:00
Sanidhya Kumar Verma f82df52570 initial commit from create-expo-app 2024-08-29 06:27:42 +00:00