Rectory mobile app: the school in your pocket
Mobile app for students, guardians and staff of the Rectory ecosystem: grades, timetable, attendance, a QR ID that works offline, school-climate reports, messages and certificates, plus environment incidents for staff. Expo, React Native and TypeScript, with a step-by-step login and 2FA, talking to Rectory and the Libro Escolar Digital.
Rectory mobile app: the school in your pocket
Rectory already had its web platform and the Libro Escolar Digital; what was missing was what families and students use every day: the phone. The Rectory mobile app brings three portals together in one application, one per profile: students (grades, timetable, attendance, ID card), guardians (the same, for each child, plus messages, meeting requests and certificates) and staff (the Rectory modules that make sense out in the field). It is built with Expo and React Native, follows the Figma design "Mockups App Rectory Mobile" and stores no data of its own: every screen asks Rectory or the Libro.

| Facts | |
|---|---|
| Role | App development, from the design to the screens, plus the mobile routes it consumes in Rectory and in the Libro |
| Period | 2026 |
| Type | Cross-platform mobile app (Android and iOS) for the Rectory ecosystem |
| Status | In development, with test builds through EAS (internal APK) |
| Code | Private (proprietary software); the case comes with screenshots and selected snippets |
The screenshots show the app running against Escuela Gryffindor [DEMO], the fictional school with test data that I also use for the Libro manuals.
Stack
| Layer | Technologies |
|---|---|
| App | Expo SDK 58, React Native 0.88, React 19, TypeScript (~12,400 lines, 56 screens) |
| Navigation | Expo Router: one folder per portal (estudiante/, apoderado/, funcionario/) and routes protected by session |
| Data | TanStack Query over fetch; in-memory cache and, only for the essentials, on-disk cache |
| Session | expo-secure-store (the phone's keychain); one Sanctum token per profile |
| UI | Design palette and components, Lato, SF Symbols on iOS and Material Symbols on Android, expo-glass-effect, Reanimated |
| Device | expo-image-picker and expo-image-manipulator (incident and profile photos), expo-web-browser, expo-file-system |
| Backend | api/movil/* routes in Rectory (Laravel) and in the Libro Escolar Digital (Laravel) |
| Distribution | EAS Build (preview profile, internal APK) |
Architecture
Mobile app (Expo / React Native)
student | guardian | staff member
| |
| login + 2FA | student data
v v
+-----------------------+ +-----------------------------+
| Rectory /api/movil/* | | Libro Digital /api/movil/* |
| identity, schools, |-->| grades, timetable, |
| Environment, Comms | | attendance, messages, PDFs |
+-----------------------+ +-----------------------------+
staff token student and guardian token

- Rectory is the front door; the Libro owns the student's data. Students and guardians validate their password in Rectory, but the Libro issues the token (30 days) and from then on the app talks to the Libro directly. Staff live in Rectory, which issues their own token.
- One app, three sessions. The session stores the portal, the token and the name. The root layout protects each route group with that session, so a student token never opens a staff screen.
- Signing out revokes the token on the server and wipes what was stored on the phone even when there is no network.
Features by profile
| Profile | What it solves |
|---|---|
| Student | Home with average and attendance, grades by subject and semester, weekly timetable, announcements, ID card with QR and barcode, student record, surveys and School Climate reports |
| Guardian | All of the above for each child with a child selector, plus the school calendar, homework, meetings, workshops, messages with the school, reports to confirm and PDF certificates |
| Staff | Environment incidents (report with photos, reply, close, semester summary) and Communications (chat and notices) |

Deep dive
1. A step-by-step login that mirrors the web
Access copies the Rectory flow in the browser: identifier, school, password and, for staff, the verification code. If the account belongs to a single school the app skips the choice; if there are several it shows the picker with each school's logo. The RUT input formats itself while typing and turns green when the check digit matches; the error only appears on Continue, because while typing there is no way to know whether a digit is still missing.
A single component (PortalLogin) serves all three portals: the field (RUT or email), the texts and the route change, not the flow.

2. Staff: mandatory 2FA, also locally
A staff member cannot get into the app without two-step verification enabled on the web (if it is missing the app explains it and takes them to turn it on), and demo schools have no access. The code can come from the authenticator app or from email, with a countdown to request another that respects the seconds the server reports. The challenge expires after 10 minutes and, when it does, the app goes back to the password without clearing it.
The server requires 2FA even with APP_DEBUG on, unlike the web, so it can be tested locally.
3. An ID card that works without signal
The student ID (QR and barcode) is used at the gate and in the canteen, where there is sometimes no signal. That is why it is one of the few things stored on disk, together with the profile, the list of children and the timetable: when opening with a session, the app loads that cache before showing the screens and opens instantly.
Everything else stays in memory (grades, attendance, announcements) and School Climate data is never stored. The cache is wiped on sign-in and sign-out: what is on the phone belongs to a single session.

4. Guardians with more than one child
The guardian portal reuses the student screens, but each route hangs off a student (/alumnos/{id}/..., with the public identifier, never the sequential number). A child selector switches the context of grades, attendance, timetable, calendar and messages, and the server checks on every call that the student is linked to the guardian.

5. School Climate from the student's side
The student answers surveys and can file a report through a confidential channel: one staff member handles it and, in the conversation, the student never sees their name, only "Convivencia Escolar". The report reaches the school with the student's name and grade so it can help; the app explains this before sending. The Libro supplies the identity and forwards to Rectory, which stores the report.
6. Staff: only what is used in the field
The staff app is deliberately small: report and follow Environment incidents (with photos taken from the phone and downsized with expo-image-manipulator before uploading), the semester summary and Communications. For everything else, a card links to the Rectory web. Every action uses the same access rules as the web: a module only shows if the account has permission.

Challenges that taught me something
- Feeling native on Android and iOS. Icons are defined once with their SF Symbols and Material Symbols names, and screens read the palette from a single constant (
Brand). Expo web works as a quick test bench and as the source of the screenshots. - A token that does not belong to whoever validates it. Rectory validates the password and the Libro issues the token; sign-out has to revoke it on the right server. Each portal's logout route handles it.
- What to store on the phone. Every extra piece of data on disk can end up on a shared phone. I chose to store the minimum to use the app offline and wipe it all when the session changes.
- Testing against believable data without using real data. For the screenshots I ran both backends locally, seeded Escuela Gryffindor and created demo sessions with
php artisan tinker.
By the numbers
| Profiles | 3 (student, guardian, staff) |
| Screens | 56 |
| Code | ~12,400 lines of TypeScript |
| Backends | 2 (Rectory and Libro Escolar Digital) |
| Session | Token in the phone's keychain; 30 days for students and guardians |
What I take away
An app that only displays data from other systems looks simple until you have to decide whose token is whose, what can be seen offline and what must never stay on the phone. What I learned most in this app was not about React Native but about boundaries: where Rectory ends, where the Libro begins and what each side knows about the other.
Project screenshots