Leanpub Header

Skip to main content

Native Mobile Development After React Native

Architecture, Engineering, and the Future of Platform-Native Apps

Native Mobile Development After React Native
This book is 100% completeLast updated on 2026-09-10

React Native got you far. But when performance, maintainability and long-term control start to matter, native development deserves another look. This book explores Swift, SwiftUI, Kotlin and Jetpack Compose, helping you understand when going native makes sense and how to make the move without losing what already works.

Minimum price

$25.00

$35.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
251
Pages
About

About

About the Book

This book is for engineers and architects who built mobile applications with React Native and are now reevaluating their choice. It explains the internals of modern native platforms, how Swift, SwiftUI, Kotlin, and Jetpack Compose actually work, and how to design production-grade mobile applications. It covers the trade-offs of cross-platform development, real migration strategies from React Native to native, and the engineering practices required to build maintainable, high-performance applications at scale. By the end, you will understand not only how to write native code, but why particular architectures succeed or fail, when native is genuinely better than cross-platform, and how to structure your team and systems for long-term success.

Author

About the Author

Steve Publications

Steve is a technology professional with more than 20 years of experience in software development, server infrastructure, cybersecurity, vulnerability research and reverse engineering. Throughout his career, he has designed, secured, analyzed and tested complex software and infrastructure, with a particular focus on understanding how systems fail and how they can be made more secure.

Outside of work, Steve enjoys sharing knowledge with the technology community. He collaborates with researchers, industry experts and technology professionals to write practical books covering software development, cybersecurity, cloud computing, networking, DevOps, artificial intelligence and enterprise technologies. His books focus on practical learning through clear explanations, real-world examples and hands-on exercises. With more than two decades of industry experience, his goal is to help IT professionals, students and technology enthusiasts build useful skills and stay current in a rapidly changing industry.

We believe readers deserve to know how our books are created. Most of our authors are not native English speakers, so we use AI to help translate, proofread manuscripts, fix grammar, improve sentence structure and make technical explanations easier to read. AI is used as an editing tool only. It does not replace the research, technical knowledge or hands-on experience behind our books. Some of our authors also prefer to remain anonymous for privacy or professional reasons. In those cases, we publish their work under a different name. The author's name may be different, but the quality of the content and our review process remain the same.

Every book is written, reviewed and maintained by experienced technology professionals, with contributions from our private technical community of more than 420 engineers and researchers. We spend far more time validating technical accuracy and keeping our content up to date than generating text. We are always interested in working with experienced professionals who have deep expertise in a particular technology or domain. If you would like to publish a book with us or help review an existing manuscript, we'd love to hear from you. Send us a message describing your area of expertise. We are especially interested in niche technologies, specialized skills and emerging topics that are underrepresented in existing technical literature.

If you look through the contents of our books, you'll see practical examples, detailed explanations and material that is regularly updated. Our goal is to publish books that professionals can actually rely on, not low-effort AI-generated content. If you ever feel that one of our books does not meet that standard, Leanpub offers a 60-day money-back guarantee. Feel free to request a refund if you are not satisfied with your purchase.

Contents

Table of Contents

Architecture, Engineering, and the Future of Platform-Native Apps

  1. About this book

Introduction: The Moment of Decision

  1. The Promise That Was
  2. The Cracks in the Foundation
  3. What Changed
  4. A New Maturity
  5. What This Book Is
  6. What This Book Is Not
  7. How to Use This Book
  8. The Journey Ahead

Chapter 1: The History and Architecture of React Native

  1. From Web to Mobile
  2. The Bridge: How React Native Communicates with Native Code
  3. The New Architecture: Fabric, TurboModules, and the JavaScript Interface
  4. Execution Model: Threads, Event Loops, and Message Passing
  5. Why the Architecture Limits Performance
  6. The Developer Experience Story

Chapter 2: Cross-Platform Development: A Taxonomy of Approaches

  1. The Spectrum of Cross-Platform Development
  2. WebView-Based: Cordova, Ionic, and the Legacy Stack
  3. JavaScript Plus Native Rendering: React Native, NativeScript
  4. Self-Contained Runtime Plus Custom Rendering: Flutter
  5. Shared Business Logic: Kotlin Multiplatform, Swift Package for Android
  6. WebAssembly in Mobile: The Emerging Third Path
  7. A Decision Framework for Cross-Platform Choices

Chapter 3: Flutter Deep Dive: The Main Rival

  1. Flutter’s Unique Architecture
  2. How Flutter Renders: Frames, Layers, and the Pipeline
  3. Dart’s Concurrency Model: Isolates and Event Loop
  4. State Management: From Provider to Riverpod to Bloc
  5. Flutter vs Native: The Performance Reality
  6. Why Flutter’s Approach Makes Trade-offs Native Can’t Avoid

Chapter 4: Kotlin Multiplatform: Sharing Logic, Not UI

  1. KMP Philosophy: What to Share and What Not to
  2. Project Structure and Gradle Configuration
  3. Shared Code: Expect/Actual and Platform Abstractions
  4. Compose Multiplatform: Sharing UI (or Not)
  5. Real-World Adoption Patterns
  6. KMP vs React Native vs Pure Native

Chapter 5: The iOS Platform: Architecture and Execution

  1. From Binary to Launch: Loading, Linking, and Initialization
  2. Process Model, Sandboxing, and Memory Isolation
  3. The Run Loop: Events, Timers, and Scheduling
  4. View Hierarchy and Auto Layout Mechanics
  5. UIKit Internals: UIResponder Chain and Event Delivery
  6. How the System Manages App Lifecycle

Chapter 6: Swift: Language and Runtime

  1. Swift’s Type System: Value Types, Reference Types, and Protocols
  2. The Swift Standard Library and Its Design Philosophy
  3. Memory Management: ARC, Retain Cycles, and Stack Allocation
  4. Swift’s Compile-Time Model and ABI Stability
  5. Performance: What Swift Does Well and Where It Struggles
  6. Modern Swift: Concurrency, Actors, and Structured Concurrency

Chapter 7: SwiftUI: Declarative UI on iOS

  1. SwiftUI’s Declarative Model: Views, State, and Recomposition
  2. How SwiftUI Renders: View Updaters, Transaction System, and Layout Passes
  3. State Management: @State, @Binding, @ObservedObject, @Environment
  4. Navigation Architecture in SwiftUI
  5. Animations and Transitions: The Declarative Way
  6. SwiftUI Limitations: When to Fall Back to UIKit
  7. Complete Example: Building a Production Application in SwiftUI

Chapter 8: The Android Platform: Architecture and Execution

  1. Android Process Model: Apps, Services, and System Server
  2. Application Package Structure: APKs, AABs, and Dynamic Delivery
  3. Activity Manager and the App Lifecycle
  4. The Android Runtime: Compilation and Execution
  5. Handler, Looper, and the Main Thread Model
  6. System Services: Binder IPC and Interprocess Communication

Chapter 9: Kotlin: Language and Ecosystem

  1. Kotlin’s Design: Why Google Chose It Over Java
  2. Type System, Null Safety, and Extension Functions
  3. Coroutines: Kotlin’s Concurrency Revolution
  4. The Kotlin Standard Library and Compiler Plugins
  5. Kotlin on the JVM and Native: Compilation Targets
  6. Kotlin Performance: Optimization and Bytecode

Chapter 10: Jetpack Compose: Declarative UI on Android

  1. Composable Functions and the Composition Model
  2. How Compose Renders: Snapshot, Recomposition, and Diffing
  3. State Management in Compose: remember, State, and Derived State
  4. Navigation with Compose Navigation
  5. Animations in Compose
  6. Compose vs View System: Architecture and Performance
  7. Complete Example: Building a Production Application in Compose

Chapter 11: Concurrency and Asynchronous Programming

  1. The Concurrency Challenge in Mobile
  2. iOS Concurrency: Grand Central Dispatch, Operation Queues, and async/await
  3. Android Concurrency: Threads, Handlers, and Coroutines
  4. Structured Concurrency: Why It Matters
  5. Avoiding Race Conditions and Deadlocks
  6. Complete Examples: Concurrency Patterns on Both Platforms

Chapter 12: Memory Management and Performance

  1. iOS Memory: ARC, Stack vs Heap, and Retain Cycle Detection
  2. Profiling Tools: Instruments, Xcode Debugger, Android Profiler
  3. Common Memory Pitfalls on Each Platform
  4. Reducing Memory Footprint: Practical Techniques
  5. Case Study: Debugging a Memory Leak on Each Platform

Chapter 13: Networking and Data Synchronization

  1. iOS Networking: URLSession, HTTP Pipelines, and TLS
  2. Android Networking: OkHttp, HttpURLConnection, and TLS
  3. Architecture Patterns: REST, GraphQL, and WebSockets
  4. Offline-First Design: Caching, Queueing, and Conflict Resolution
  5. Push Notifications: APNs, FCM, and Local Notifications
  6. Complete Example: Building an Offline-First Data Layer

Chapter 14: Persistence and Databases

  1. iOS Persistence: UserDefaults, Keychain, CoreData, and SQLite
  2. Android Persistence: SharedPreferences, DataStore, Room, and SQLite
  3. CoreData Architecture: Managed Objects, Contexts, and Migrations
  4. Room Architecture: Entities, DAOs, and Compilation
  5. Migration Strategies: Versioning and Data Integrity
  6. Complete Example: A Cross-Platform Data Layer Architecture

Chapter 15: App Architecture Patterns

  1. The Clean Architecture Principle Applied to Mobile
  2. MVVM, MVI, and Redux-Style Patterns on Mobile
  3. Dependency Injection: Swift’s Approach vs Android’s Hilt/Dagger
  4. Feature-Based Modularization: Breaking Up Monolithic Apps
  5. Domain Layer Design: Use Cases, Entities, and Repository Pattern
  6. Complete Example: Structuring a Medium-Scale Application

Chapter 16: State Management at Scale

  1. Local vs Global State: When to Use Each
  2. iOS Patterns: SwiftUI Environment, Combine, and Custom Stores
  3. Android Patterns: ViewModel, MVI Stores, and Flow
  4. Unidirectional Data Flow and Its Benefits
  5. Server-Driven State: Keeping UI and Server in Sync
  6. Complete Example: State Management in a Social Feed Application

Chapter 17: Navigation and Deep Linking

  1. Navigation Patterns: Stacks, Tabs, and Custom Flows
  2. iOS Navigation: SwiftUI NavigationStack and UIKit UINavigation
  3. Android Navigation: Jetpack Navigation and Compose Navigation
  4. Handling Authentication Flows and Complex Transitions
  5. Android Animations: Compose Animations and ViewPropertyAnimator
  6. Complex Animations: Choreographing Multiple Elements
  7. Performance: Avoiding Jank and Frame Drops
  8. Complete Example: Animated Onboarding Flow on Both Platforms

Chapter 19: Accessibility and Internationalization

  1. Accessibility: VoiceOver, TalkBack, and Dynamic Type
  2. Accessibility Architecture: Labeling, Focus, and Semantics
  3. Internationalization: String Management, RTL, and Localization
  4. Plurals, Date Formats, and Cultural Sensitivity
  5. Testing Accessibility and Localization
  6. Complete Example: Making an App Fully Accessible and Localized

Chapter 20: Security in Mobile Applications

  1. Threat Model for Mobile Applications
  2. iOS Security: Keychain, Enclaves, and App Sandboxing
  3. Android Security: Keystore, BiometricPrompt, and App Sandboxing
  4. Secure Networking: TLS Pinning and Certificate Validation
  5. Protecting Against Reverse Engineering and Tampering
  6. Complete Example: Implementing Secure Authentication and Storage

Chapter 21: Testing Strategies

  1. Testing Pyramid for Mobile Applications
  2. iOS Testing: XCTest, UI Testing, and SwiftUI Previews
  3. Android Testing: JUnit, Espresso, and Compose Testing
  4. Testing Architecture: Making Your Code Testable
  5. Mocking and Dependency Injection for Tests
  6. Performance Monitoring and Alerting
  7. Complete Example: Debugging a Production Performance Issue

Chapter 23: CI/CD and Release Management

  1. Build Systems: Xcode Build System and Gradle
  2. Continuous Integration: Building and Testing in the Cloud
  3. Code Signing and Provisioning: iOS and Android
  4. App Store Deployment: Review, Release Tracks, and Rollouts
  5. Feature Flags and Gradual Rollouts
  6. Complete Example: Setting Up CI/CD for a Production Mobile App

Chapter 24: Migrating from React Native to Native

  1. Deciding to Migrate: Signals and Metrics That Matter
  2. Strategic Options: Big Bang, Strangler Fig, or Side-by-Side
  3. Parallel Architectures: Running React Native and Native Together
  4. Migrating UI: Mapping React Native Components to SwiftUI and Compose
  5. Migrating State Management and Business Logic
  6. Complete Case Study: Migrating a Large React Native App to Native

Chapter 25: Team Organization and Developer Productivity

  1. Team Models: Unified, Platform-Siloed, and Feature-Team Approaches
  2. The Cost of Cross-Platform vs Native: A Realistic Analysis
  3. Hiring, Onboarding, and Knowledge Transfer
  4. Developer Experience: Tooling, Documentation, and Conventions
  5. Making Technology Decisions That Last
  6. Complete Case Study: How a Large Organization Structured Its Mobile Teams

Conclusion: The Future of Native Mobile Development

  1. Platform Roadmaps: Where Apple and Google Are Headed
  2. The AI and Machine Learning Shift in Mobile
  3. New Form Factors: Wearables, Foldables, and Beyond
  4. The Next Cross-Platform Challenge
  5. Final Recommendations for Teams and Developers
  6. Closing Thoughts

References

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub