Skip to main content

Mobile Development

Mobile Developer Roadmap: Native, Flutter or React Native, and the Skills That Matter

What every mobile app needs in any stack — architecture, offline sync, secure tokens, push, lifecycle, testing, store release — and how to choose native, Flutter or React Native.

  • By Ahmed Alaydi
  • Published
  • Updated
  • 23 min read
On this page

Most people approaching mobile development start with the wrong question: Flutter or React Native? Native or cross-platform? The framework matters, but it decides less than you think. It sets your language, your UI toolkit and your ecosystem. It does not decide whether your app survives a dropped connection mid-request, recovers when a token expires, keeps a half-written form after the operating system kills it in the background, or gets through store review the first time.

Those problems are the same in every stack, and they are where mobile developers actually spend their time. So this roadmap covers that shared ground first. Then it compares native development, Flutter and React Native as what the choice really is — a decision driven by your product and your team — and ends with a staged plan, one project per stage, that takes you from a first screen to a release in both stores.

What makes mobile different

Web development lets you assume a lot: reasonably stable connectivity, a process that stays alive while the tab is open, and the ability to ship a fix the moment you find a bug. Mobile removes all three assumptions, and that changes how you design.

  • Connectivity is unreliable. Requests fail routinely, in lifts, tunnels and crowded places, and “it worked on Wi-Fi” is not testing.
  • The operating system owns your process. Battery and memory are constrained, and the system can suspend your app or kill it in the background without asking.
  • Releases are slow to reach people. Builds go through store review and then depend on users updating, so a bad version can stay installed for weeks.
  • Permissions are explicit and refusable. Your app must still work sensibly when a user says no to the camera, location or notifications.
  • Two platforms, two sets of conventions. Back navigation, typography, gestures and system dialogs differ between Android and iOS, and users notice when an app ignores what they are used to.
  • Screens vary more than you expect. Small phones, tablets, foldables, large accessibility text sizes and right-to-left languages such as Arabic all have to lay out correctly.

The fundamentals every mobile app needs

Everything below applies whether you write Kotlin, Swift, Dart or TypeScript. The APIs differ; the problems do not. This is the map. The sections that follow take each area in turn.

  • UI architecture and state — where state lives, who may change it, and how screens stay consistent.
  • Navigation — stacks, tabs, deep links, and what “back” should do at every point.
  • API integration and authentication — timeouts, retries, token refresh, and secure storage for credentials.
  • Local storage and offline behaviour — what is readable offline, what is queued, and how conflicts resolve.
  • Permissions and push notifications — asking at the right moment, and handling a tap that cold-starts the app.
  • Lifecycle — backgrounding, configuration changes and process death.
  • Performance, testing and release — smooth lists, honest tests on real devices, and a repeatable path into both stores.

UI architecture and state management

The official guidance for Android and for Flutter has converged on the same shape. A UI layer holds views plus a state holder (usually called a view model) that turns data into what the screen shows. A data layer holds repositories, which own each type of data, and the services or data sources they call. An optional domain layer appears only when logic is complex or shared. State flows down to the UI; events flow up to whoever owns the data. React Native and SwiftUI apps use different words for the same idea.

Keep three kinds of state apart

  • UI element state — focus, scroll position, whether a sheet is open. It belongs next to the widget or component.
  • Screen state — loading, content, empty or error, and the data the screen is showing. It belongs in the view model.
  • App data — the signed-in session, cached server data, user content. It belongs in repositories, with one source of truth per type.

Mixing these is the root of most “the screen shows stale data” bugs. The Kotlin example below shows the pattern in Jetpack Compose terms: one immutable state type, a view model that exposes it as a stream, and a small piece of input kept in SavedStateHandle so it survives process death.

kotlin
sealed interface OrdersUiState {
    data object Loading : OrdersUiState
    data class Content(val orders: List<Order>, val isStale: Boolean) : OrdersUiState
    data class Error(val message: String) : OrdersUiState
}

@OptIn(ExperimentalCoroutinesApi::class)
class OrdersViewModel(
    private val repository: OrdersRepository,
    private val savedState: SavedStateHandle,
) : ViewModel() {

    // Small, serialisable, and enough to rebuild the screen after process death.
    private val query: StateFlow<String> = savedState.getStateFlow("query", "")

    val uiState: StateFlow<OrdersUiState> = query
        .flatMapLatest { q -> repository.observeOrders(q) }
        .map<OrdersResult, OrdersUiState> { r -> OrdersUiState.Content(r.orders, r.isStale) }
        .catch { emit(OrdersUiState.Error("Could not load orders")) }
        .stateIn(viewModelScope, SharingStarted.WhileSubscribed(5_000), OrdersUiState.Loading)

    fun onQueryChange(value: String) {
        savedState["query"] = value
    }
}
The UI only reads uiState and sends events. The repository decides where the orders come from.

Library choice follows from the pattern, not the other way round. On Android that usually means ViewModel, Kotlin flows and Hilt for dependency injection. In SwiftUI, observable model objects. Flutter's architecture guide builds view models on ChangeNotifier, and packages such as Provider, Riverpod and Bloc are common in practice. In React Native, keep server data in a caching library such as TanStack Query and use a small client store only for genuinely global state. Learn one option well enough to explain why it works; that understanding transfers, even when the library does not.

Navigation on mobile is a stack of screens, usually inside tabs, with modals on top. The hard part is not pushing a screen; it is deciding what the back gesture does from every point, and keeping that consistent with platform habits: the system back gesture on Android, the edge swipe on iOS.

  • Deep links must build a sensible back stack. Opening a product from a link should leave the user somewhere reasonable when they press back, not on a blank screen or outside the app.
  • Verified links need your domain. iOS Universal Links and Android App Links are verified through files you host on your website, so the backend or web team is part of this work.
  • Links arrive in every state. A link can open the app cold, wake it from the background, or arrive when the user is signed out. Route through login and then continue to the original destination.

The tools: Navigation for Compose on Android, NavigationStack in SwiftUI, and in Flutter plain Navigator for simple apps or a routing package such as go_router once deep linking matters, as the Flutter navigation docs recommend. React Native projects typically use Expo Router, which is file-based, or React Navigation.

API integration and authentication

Treat every request as something that can fail, hang or arrive twice. In practice that means a few non-negotiable habits:

  • Set a timeout on every request. A mobile network can stall without failing.
  • Retry only what is safe to repeat, with exponential backoff. Never blindly retry a 401; refresh the token or sign the user out.
  • Give writes that may be retried an idempotency key, so the server can recognise a duplicate payment or order.
  • Cancel requests when the user leaves the screen, and map network models into your own types at the edge of the data layer.
  • Never ship secrets in the app. Anything inside the binary can be extracted, so calls that need a private key go through your backend.

Store tokens where the platform protects them

A common setup is a short-lived access token held in memory and a refresh token in secure storage. On iOS that means the Keychain. On Android it means data encrypted with a key from the Android Keystore, whose key material cannot be exported from the device and is hardware-backed where the device supports it. Plain SharedPreferences, UserDefaults or AsyncStorage are not secure storage. Cross-platform wrappers exist: Expo's SecureStore uses the Keychain on iOS and Keystore-encrypted preferences on Android, and flutter_secure_storage does the equivalent for Flutter.

For sign-in with an external identity provider, use the system browser (Custom Tabs on Android, ASWebAuthenticationSession on iOS) with PKCE, as RFC 8252 describes, rather than an embedded web view. The subtle bug most apps ship is the refresh race: several requests fail with 401 at once, each starts its own refresh, and a rotated refresh token gets spent twice, logging the user out. The fix is to share one in-flight refresh:

typescript
import * as SecureStore from "expo-secure-store";

const API_URL = "https://api.example.com";
let refreshInFlight: Promise<string> | null = null;

// Ten requests can fail with 401 at the same moment. Only one of them
// should spend the refresh token; the others await the same promise.
export function refreshAccessToken(): Promise<string> {
  if (!refreshInFlight) {
    refreshInFlight = (async () => {
      const refreshToken = await SecureStore.getItemAsync("refreshToken");
      if (!refreshToken) throw new Error("SIGNED_OUT");

      const res = await fetch(API_URL + "/auth/refresh", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ refreshToken }),
      });
      if (!res.ok) throw new Error("SIGNED_OUT"); // route to login once, not per request

      const { accessToken, refreshToken: rotated } = await res.json();
      await SecureStore.setItemAsync("refreshToken", rotated);
      return accessToken as string; // keep the access token in memory only
    })().finally(() => {
      refreshInFlight = null;
    });
  }
  return refreshInFlight;
}
The same single-flight idea applies in Dart with a shared Future, or in Kotlin with a Mutex.

The server side of this — token design, rotation, revocation — is covered in the backend developer roadmap.

Local storage, offline behaviour and sync conflicts

Pick storage by the shape of the data, not by habit:

  • Preferences — small key-value settings: DataStore on Android, UserDefaults on iOS, shared_preferences in Flutter, AsyncStorage in React Native.
  • Structured data — a real database when you query, sort or work offline: Room, SwiftData or Core Data, SQLite through drift or sqflite, expo-sqlite.
  • Files — images, downloads and exports, in the app's own directories.
  • Secrets — tokens and keys only, in the secure storage described above. It is not a general-purpose database.

Offline support is a product decision you make per feature. Reading cached content offline is cheap. Queuing writes and syncing them later is not. Android's offline-first guide states the core rule clearly: the local database is the source of truth the UI reads from, writes go to it first, and a sync process reconciles it with the network. The Dart repository below follows the read side of that rule — show what is on disk immediately, then refresh if the network allows.

dart
class ArticlesRepository {
  ArticlesRepository(this._api, this._db);

  final ArticlesApi _api;
  final ArticlesDao _db;

  /// Emits what is on disk first, then fresh data if the network allows.
  Stream<List<Article>> watchArticles() async* {
    yield await _db.readAll();

    try {
      final fresh = await _api.fetchArticles().timeout(const Duration(seconds: 10));
      await _db.replaceAll(fresh); // disk stays the source of truth
      yield fresh;
    } on Exception {
      // Offline, timed out or server error: keep the cached list on screen.
      // The view model decides how to tell the user it may be out of date.
    }
  }
}
The user never stares at a spinner when there is something useful on disk to show.

When two edits collide

The moment users can edit offline, the same record can change on two devices before either syncs. You need a deliberate rule, chosen per type of data:

  • Last write wins. Simple and common, but it silently discards the losing edit. If it relies on device timestamps, a phone with a wrong clock can win every time; prefer versions assigned by the server.
  • Version checks. Each write carries the version it was based on (for example via an If-Match header with an ETag). The server rejects stale writes, and the app merges or asks the user.
  • Merge by design. Field-level merges, or append-only data such as comments and log entries, avoid most conflicts in the first place.

Whichever rule you choose, queued writes need idempotency keys so a retry after a lost response does not create a duplicate, and the UI needs a visible state for “saved on this device, not yet synced”.

Runtime permissions and push notifications

Ask for a permission at the moment the user tries to do something that needs it, explain why first, and design the path where they refuse. On Android a user can deny repeatedly until the system stops showing the prompt; from then on your only option is to explain and link to the app's settings (Android permissions guide). Ask for the least you need: approximate rather than precise location, and the system photo pickers on both platforms, which let a user share selected photos without granting access to the whole library.

Notifications are a permission too. Since Android 13, apps need the POST_NOTIFICATIONS runtime permission, and notifications are off by default for apps newly installed on those devices. iOS has always required the user's authorisation before showing alerts. Asking on first launch, before the user has seen any value, wastes your one good chance.

How push actually reaches a phone

  • Two delivery services. Apple devices receive push through APNs. Firebase Cloud Messaging delivers to Android and can also target iOS, where it hands messages to APNs, so you upload an APNs authentication key to your Firebase project.
  • Device tokens have a lifecycle. Register the token with your backend against the signed-in user, update it when the SDK reports a new one, remove it on logout, and prune tokens the push service reports as invalid.
  • Background delivery is not guaranteed. Silent or data-only messages can be delayed or throttled by the system. Use them as a hint to sync, never as the only way data reaches the app.
  • Handle the tap in three states. Foreground, background and terminated. The cold-start case is the one most often broken; route it through the same deep-link logic as everything else.

Application lifecycle: backgrounding and process death

When the user switches away, your app moves to the background and is soon suspended. If the system needs memory, it can end the process entirely without warning. When the user comes back, they expect the same screen, the same scroll position and the text they had typed. Delivering that is your job, not the system's.

  • Android also recreates the screen on configuration changes such as rotation or resizing. Per the saved-state guide, a ViewModel survives configuration changes but not system-initiated process death; SavedStateHandle and rememberSaveable survive both but are meant for small values like an ID or a query; real data belongs in persistent storage.
  • iOS suspends background apps and may terminate them. In SwiftUI, react to scenePhase changes to save work, and use scene storage for small pieces of UI state.
  • Flutter and React Native expose the same transitions through AppLifecycleListener and AppState respectively. The underlying platform rules still apply to them.
  • Background work is negotiated. Use WorkManager on Android and background tasks on iOS for deferrable work such as sync, and accept that the system, not you, decides exactly when it runs.

Test it deliberately. On Android, enable “Don't keep activities” in developer options, or send the app to the background and run adb shell am kill <package>, then return to it. If the screen comes back empty or crashes, you have found a bug real users already hit.

Performance

Smoothness on mobile is mostly about not blocking the thread that draws the UI. Measure before optimising, in a release or profile build, on a modest real device rather than a flagship or an emulator; debug builds are slower and will mislead you.

  • Lists must be lazy. LazyColumn, SwiftUI List or LazyVStack, ListView.builder, FlatList or FlashList build only what is on screen.
  • Move heavy work off the UI thread. JSON parsing of large payloads, image processing and database work go to coroutines on a background dispatcher, Swift concurrency, a Dart isolate, or native code in React Native.
  • Size images for the screen. Decode at display size and cache; a full-resolution photo in a thumbnail is a common cause of memory pressure.
  • Protect startup. Defer SDK initialisation and network calls that the first screen does not need.
  • Use the real tools. Android Studio profilers with Baseline Profiles and Macrobenchmark, Xcode Instruments, Flutter DevTools, and React Native DevTools.

Testing: unit, component, integration and devices

Flutter's testing overview states the trade-off well: unit tests are fast and cheap but give the least confidence, integration tests give the most confidence but are slow and costly to maintain, and widget (component) tests sit in between. Its advice — many unit and widget tests, plus enough integration tests to cover the important use cases — holds in every stack.

  • Unit — repositories and view models against fake APIs. Script the failures: timeout, 401, offline, malformed response.
  • Widget or component — one screen in each state: loading, empty, error, content, long text, right-to-left.
  • Integration and end-to-end — the flows that cost money when broken: sign-in, purchase, the core task of your app.
  • Real devices — a low-end Android phone, a small screen, the largest text size, slow networks. A device lab such as Firebase Test Lab widens coverage, and store testing tracks put builds in real hands.

The tooling per stack: JUnit and Compose UI tests on Android; Swift Testing, XCTest and XCUITest on iOS; flutter_test and integration_test in Flutter; Jest with React Native Testing Library, plus an end-to-end runner such as Detox or Maestro, in React Native (React Native testing overview).

Native and cross-platform: what each really costs

Native means Kotlin with Jetpack Compose in Android Studio, and Swift with SwiftUI in Xcode, which runs only on a Mac. You get new platform APIs on day one, platform conventions by default, and the best debugging and profiling tools. The cost is two codebases and two skill sets, which a small team feels immediately. Many existing apps also still contain the older toolkits — Android Views and UIKit — so expect to read them.

Cross-platform frameworks let one team write most of the app once. What they do not remove is the platform underneath: you still configure signing, permissions, push credentials and store listings per platform, and sooner or later you read a native crash log or write a small native module. Cross-platform shares code, not responsibility.

A middle path is worth knowing: Kotlin Multiplatform, which Google supports for sharing business logic between Android and iOS while each platform keeps its own native UI, or optionally a shared Compose Multiplatform UI.

Flutter

Flutter uses Dart, a language most people find quick to pick up, especially coming from Java, C# or JavaScript. Its defining characteristic is that it draws its own widgets rather than wrapping the platform's native components. The practical result is that a screen looks and behaves the same on both platforms, which is valuable for a strongly branded, custom UI. The flip side is that matching each platform's feel — text selection, scrolling physics, Cupertino versus Material conventions — is something you do on purpose rather than get for free.

  1. Dart: null safety, async/await, streams, and isolates for heavy work.
  2. The widget model: composition, stateless versus stateful widgets, layout constraints, and hot reload as your feedback loop.
  3. Architecture from the official guide: views, view models, repositories, services — plus one state-management approach learned properly.
  4. Navigation with go_router, networking, local storage and the offline patterns above.
  5. Plugins and platform channels, so you can call native APIs when no package does what you need.
  6. Builds, flavours, signing and release for both platforms.

React Native

React Native uses TypeScript or JavaScript with React, and renders real native components. If you already know React, most of your knowledge transfers directly — components, props, state and hooks work the way you expect — and you are mainly learning new primitives and the mobile concerns in this article. That transfer is the single strongest argument for it. A team can also share types, validation and API clients with a web app, though screens themselves are usually written separately. If React is new to you, the frontend developer roadmap covers it.

Where React Native stands today

  • The New Architecture is the only architecture. Since React Native 0.82, apps run entirely on it — JSI, the Fabric renderer and Turbo Modules — and the option to switch back is gone. React Native 0.81 and Expo SDK 54 were the last versions that allowed the legacy architecture. Before adopting a third-party native library, check that it supports the New Architecture.
  • Start with a framework. The official getting-started guide recommends using a framework for new apps and points to Expo: npx create-expo-app@latest gives you file-based routing with Expo Router, a standard library of native modules, and cloud builds and store submission through EAS. You can still use React Native without a framework, but then you own the native project setup yourself.
  • Hermes is the default JavaScript engine, and React Native DevTools is the debugger to learn.

Choosing from requirements, not reputation

Native development, Flutter and React Native are all mature, all ship real products used by large numbers of people, and all are actively maintained. There is no defensible universal winner, and anyone declaring one is describing their own situation rather than yours. Start from the product's hardest requirement and the team you actually have.

If your situation is…Lean towardsCheck before committing
A team that already ships React and TypeScript on the webReact Native with ExpoSomeone can own native builds, signing and the occasional native module
A custom, brand-driven UI that must look identical on both platformsFlutterAccessibility, text input and platform feel meet your users' expectations
Heavy use of new platform features: widgets, wearables, advanced camera, ARNative (Kotlin and Compose, Swift and SwiftUI)You can staff and maintain two codebases
A product that only needs one platformNative for that platformWhether a second platform is genuinely off the roadmap
Existing native apps that duplicate the same business logicKotlin Multiplatform for the shared logicThe iOS team is comfortable consuming a Kotlin-built framework
A solo beginner who wants to reach both platformsFlutter or React Native — pick one and finish a projectWhich language you already know; that usually decides it
Starting points, not verdicts. Validate the leading option with a short spike on your riskiest screen.
  • Requirements first. List the platform features, offline needs, performance budget and UI style. One hard requirement — a background audio pipeline, say — can settle the question on its own.
  • Team second. What your team knows, who you can hire where you are, and who will maintain the app in three years matter more than benchmark charts.
  • Prove it with a spike. Build the riskiest screen in a week with the leading option, on real devices, before committing the whole product.

If you are still deciding whether mobile is your track at all, how to choose your programming track is the better starting point.

Shipping to the stores

The release process surprises first-time mobile developers more than any framework detail, so walk through it early with a trivial app rather than under a deadline. You will need signing keys and certificates, stable app identifiers, icons and screenshots, a privacy policy, data-collection disclosures, and patience for a review that can reject you for reasons unrelated to your code.

Android: Google Play Console

iOS: App Store Connect and TestFlight

  • Distribution requires an Apple Developer Program membership. Signing combines certificates, an App ID and provisioning profiles; Xcode's automatic signing handles most of it, but learn what each piece is before it breaks.
  • TestFlight lets you invite up to 100 internal and up to 10,000 external testers; the first build you send to external testers goes through App Review.
  • Read the App Store Review Guidelines before you build, not after a rejection. Frequent first-release issues: no working demo account or backend for the reviewer (2.1), no privacy policy link in the app and in App Store Connect (5.1.1(i)), no in-app account deletion when the app allows account creation (5.1.1(v)), and third-party login without an equivalent privacy-focused option where 4.8 requires one.

After release

Because you cannot patch instantly, three habits matter more on mobile than on the web: crash reporting, so you learn about failures without waiting for reviews; staged rollouts on Google Play and phased releases on the App Store, so a bad build reaches a fraction of users first; and a server-controlled minimum-version check, so you can ask users to update when an old build becomes unsafe. React Native teams can ship JavaScript and asset fixes over the air with EAS Update, but native code still needs a store release, and updates must stay within the store rules you agreed to.

Common mistakes

  • Testing only on a fast phone, on Wi-Fi, in your own language. Try a cheap device, a slow network, the largest font and Arabic right-to-left layout.
  • Keeping important state only in memory, so it vanishes after process death.
  • Storing tokens in plain preferences, or shipping private API keys inside the app.
  • Requesting every permission on first launch, with no path for a refusal.
  • Building offline writes without a conflict rule or idempotency, then discovering duplicates in production.
  • Treating push as reliable delivery instead of a hint to sync.
  • Measuring performance in debug builds or on an emulator.
  • Leaving the first store submission until launch week — and, on a new personal Play account, forgetting the 14-day closed test.
  • Switching frameworks every few months instead of finishing one real app.

A staged roadmap with projects

Each stage ends with something you can install on a phone. Keep building the same app from stage 3 onwards; a single project that grows teaches more than five tutorials.

  1. Foundations. One language properly (Kotlin, Swift, Dart or TypeScript), Git, and how HTTP and JSON work. If this is your first language, begin with programming fundamentals and how to start programming. Project: a command-line tool that calls a public API and prints the result.
  2. UI and navigation. Layout, lists, forms, theming, stack and tab navigation, right-to-left support. Project: a multi-screen catalogue app driven by a local JSON file, with search and a details screen.
  3. Data and architecture. A real API, loading/empty/error states, view models and repositories, pagination, pull-to-refresh. Project: a reader app (news, recipes, anything with a public API) with proper error and retry handling.
  4. Auth, storage and offline. Sign-in with token refresh, secure storage, a local database, queued writes and one conflict rule. Project: a tasks or notes app with accounts that works fully offline and syncs when it reconnects.
  5. Platform integration. Permissions, camera or photo picker, push notifications with a cold-start tap, deep links, lifecycle and process-death handling. Project: add reminders, a deep link that opens a specific note, and photo attachments that still make sense when permission is denied.
  6. Quality and release. Unit, component and end-to-end tests, CI builds, crash reporting, profiling on a low-end device. Project: ship the same app to a Play closed test and to TestFlight, with a privacy policy and data disclosures.
  7. Depth. The other side of your stack: native code if you started cross-platform, or the second platform if you started native. Accessibility, localisation, background work. Project: write one native module or platform channel your app genuinely needs, and pass an accessibility review with a screen reader.

Next steps and official resources

  1. Pick a stack this week using the table above, and set up the toolchain until a blank app runs on your own phone.
  2. Create the developer accounts you will need and read the store rules before you design sign-in or data collection.
  3. Start the stage 3 project and keep extending it, rather than starting over with each new topic.
  4. Before calling any screen done, run the checklist: offline, slow network, token expiry, process death, permission denied, largest text, right-to-left.

The references worth bookmarking, all first-party:

The short version

Choose your framework from your product's requirements and your team's skills, then stop worrying about it. The skills that make you a mobile developer are the same everywhere: state that survives the system, networking that expects failure, credentials stored where the platform protects them, offline data with a clear conflict rule, permissions that respect a “no”, and a release process you have rehearsed. Build one app that does all of that and ship it to both stores; that is the roadmap.

Related on this site

Continue reading

All articles