Skip to content
← All workDelivered

Case study · Voting app: Flutter to React Native migration

Agora

Agora, an Italian voting app, migrated from an unfinished Flutter codebase to a complete React Native app with Expo, with its Flask backend extended and deployed.

Role
React Native & backend development
Category
Mobile Apps
Sector
Civic Tech
Status
Delivered
Agora home screen with categories, public figures and statistics.
List of verified politicians, each with a role, a favourite toggle and the user's like or dislike.
A public figure's dashboard showing a live approval index and a weekly approval trend chart.

(01)Overview

Overview

Agora is an Italian voting platform. Citizens vote on politicians, polls and consultations, while politicians and other public figures can register and get their own dashboard. A premium subscription unlocks more detailed information with graphs and statistics. The original Flutter app was about five years old and roughly 70% complete. It was migrated to React Native with Expo and taken to 100%, and the existing Flask backend was extended to support the new app.

Scope of the work

The Flask backend and MySQL database already existed. They were extended, changed, stabilised and deployed, not built from scratch. The Next.js web portal was built by others.

(02)The challenge

Finish the app without breaking the backend.

The mobile app was written in Flutter around five years earlier and was roughly 70% complete. The Flask API and MySQL database were already in use, so the new React Native app had to keep working with the existing data.

(03)What was done

React Native & backend development

The existing Flutter app and the API served as the specification: screen by screen, the React Native version had to support the same flows against the same backend. Once it matched, the rest of the app was built out until it was complete.

  • Migrated the mobile app from a roughly five year old, 70% complete Flutter codebase to React Native with Expo, and finished it.

  • Rebuilt the screens and flows in TypeScript, styled with NativeWind, with navigation through React Navigation.

  • Connected the app to the Flask API using Axios and TanStack Query, with app state in Zustand and translations through i18next.

  • Created new APIs where the app needed them, changed existing ones and stabilised the endpoints the app relies on, in Python with Flask.

  • Deployed the backend and its MySQL database to a cloud server.

(04)Key decisions

Key decisions

a.

Expo for the new app

Expo's managed workflow handles builds and much of the native configuration, which keeps the focus on rebuilding screens and flows.

b.

Server state kept apart from app state

TanStack Query handles data from the Flask API (fetching, caching, refreshing), while Zustand holds the small amount of state that lives only in the app.

c.

Fix the API where the app needs it

Instead of working around gaps in the backend from the app, the endpoints the app depends on were added and stabilised, so both sides stay simpler.

(05)Screens

Screens from the delivered app.

  • Agora home screen with categories, public figures and statistics.

    Home

  • List of verified politicians, each with a role, a favourite toggle and the user's like or dislike.

    Politicians

  • A public figure's dashboard showing a live approval index and a weekly approval trend chart.

    Politician dashboard

  • Polls screen: the user's submissions with their review status, and polls rating local services from 1 to 5.

    Polls

  • Consultations screen listing active yes or no questions for the user's city, with closing dates.

    Consultations

(06)Status

Delivered. The React Native app is complete, and the backend and database it relies on are deployed on a cloud server.

(07)Technologies

  • React Native
  • Expo
  • Flask
  • Python
  • MySQL
  • TypeScript
  • NativeWind
  • React Navigation
  • TanStack Query
  • Zustand
  • Axios
  • i18next

Works with existing systems (built by others)

  • Flutter (original app)
  • Next.js web portal

Next project

Solutions by AI Growth →

Company website

Next step

Need something similar?

Tell us what you're building. We'll tell you how we'd approach it.