<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-it-takes-to-migrate-discord-to-rn-s-new-architecture-qkivgduxv" -->

---
title: What It Takes to Migrate Discord to RN's New Architecture
description: Software Mansion details the year-long effort of migrating Discord's iOS app to React Native's New Architecture, focusing on what happens after the...
canonical: https://daily.dev/posts/what-it-takes-to-migrate-discord-to-rn-s-new-architecture-qkivgduxv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What It Takes to Migrate Discord to RN's New Architecture | daily.dev
og:description: Software Mansion details the year-long effort of migrating Discord's iOS app to React Native's New Architecture, focusing on what happens after the...
og:url: https://daily.dev/posts/what-it-takes-to-migrate-discord-to-rn-s-new-architecture-qkivgduxv
og:image: https://api.daily.dev/og/posts/qKiVGdUXV.png
og:image:alt: What It Takes to Migrate Discord to RN's New Architecture
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What It Takes to Migrate Discord to RN's New Architecture

**[Software Mansion](https://daily.dev/sources/swmansion)** · 16 min read · 0 upvotes · 1 comments

## Summary

Software Mansion details the year-long effort of migrating Discord's iOS app to React Native's New Architecture, focusing on what happens after the architecture flip rather than the flip itself. Analyzing closed tickets, rendering/layout issues made up 47% of the work, followed by crashes (16%), build/infra (14%), performance (13%), and input issues (11%). Three deep-dive case studies illustrate subtle breakages: a context menu misplacement caused by different coordinate origins under Fabric's Yoga-root measurement, a voice-message recording gesture that never finished due to view flattening being re-evaluated on accessibility prop changes, and an app freeze caused by a deadlock in the interop layer triggered by a legacy view manager's class-naming mismatch. The piece closes with practical advice: budget for investigation over fixing, instrument before optimizing, and push fixes upstream into shared libraries like Reanimated, Screens, and Gesture Handler so the whole ecosystem benefits.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://swmansion.com/blog/what-it-actually-takes-to-migrate-discord-to-react-native-s-new-architecture>

## Questions this post answers

### Why does react-native measure() return different coordinates for a view inside a modal versus outside one under Fabric?

Under Fabric, measuring a view returns a position relative to its Yoga root, and a modal is its own root, unlike the old architecture where all measurements were relative to the window. Outside a modal the two are identical, but inside a modal the same measure() call returns modal-relative coordinates instead of window coordinates, breaking things like context menus positioned in a FullWindowOverlay.

_Teams debugging modal positioning glitches after a New Architecture upgrade can find prior fixes surfaced on daily.dev._

### Why would a react-native gesture handler's onFinalize never fire after changing an accessibilityElementsHidden prop mid-gesture?

Accessibility props like accessibilityElementsHidden and importantForAccessibility are on the list of props that force Fabric's view-flattening decision to be re-evaluated on every commit, so toggling them mid-gesture can invalidate the native view backing an in-progress gesture, canceling it before onFinalize runs. Setting collapsable={false} on the wrapping view keeps it as a real native view and fixes the issue.

_Anyone chasing flaky gesture bugs after a Fabric migration can track similar root causes on daily.dev._

### What causes a deadlock freeze when a legacy React Native view manager class name doesn't end in Manager under the New Architecture interop layer?

The interop layer's fast lookup path appends Manager to a component name to find its Objective-C class; if the class is named without that suffix, the fast path misses and falls back to a synchronous main-thread module creation call while holding a write lock on the registry, which can deadlock against a concurrent read lock request from an animation updating props on the main thread. Renaming the class to include the Manager suffix (using RCT_EXTERN_REMAP_MODULE to keep the JS-facing name unchanged) avoids the slow path and the deadlock.

_Developers hunting unexplained app freezes after adopting Fabric can find similar interop layer gotchas on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@leonidbugaev** · 0 upvotes

> I'd have shipped the measure() helper as-is. pageY still comes back, it just means modal-relative now, and the overlay still treats it as window space. Works on every normal screen. Only the long-press inside a modal is offset.

## Similar posts on daily.dev

- [Artsy Mobile 2025 Wrapped](https://daily.dev/posts/artsy-mobile-2025-wrapped-mz1geidqj) · Artsy.net · 0 upvotes · 0 comments
- [React Native solves some real problems](https://daily.dev/posts/react-native-solves-some-real-problems-bagnpeani) · Bytes by ui.dev · 2 upvotes · 0 comments
- [React Native vs Swift and Kotlin: How We Choose the Stack](https://daily.dev/posts/react-native-vs-swift-and-kotlin-how-we-choose-the-stack-c12ozfjtn) · Software Mansion · 0 upvotes · 0 comments
- [Crease-Proof Layouts, Brain Rot Without the Black Frames, and Un-Breaking a Non-Breaking Release](https://daily.dev/posts/crease-proof-layouts-brain-rot-without-the-black-frames-and-un-breaking-a-non-breaking-release-mnygz7755) · Medium · 1 upvotes · 0 comments

---

Tags: [#mobile](https://daily.dev/tags/mobile), [#react-native](https://daily.dev/tags/react-native), [#discord](https://daily.dev/tags/discord)

[View this post on daily.dev](https://daily.dev/posts/what-it-takes-to-migrate-discord-to-rn-s-new-architecture-qkivgduxv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"What It Takes to Migrate Discord to RN's New Architecture","url":"https://daily.dev/posts/what-it-takes-to-migrate-discord-to-rn-s-new-architecture-qkivgduxv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-it-takes-to-migrate-discord-to-rn-s-new-architecture-qkivgduxv"},"datePublished":"2026-09-09T10:30:45.272Z","dateModified":"2026-09-14T06:57:11.677Z","description":"Software Mansion details the year-long effort of migrating Discord's iOS app to React Native's New Architecture, focusing on what happens after the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4b3dba9eb502d6f07eb2fe9c4da6c104?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4b3dba9eb502d6f07eb2fe9c4da6c104?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Software Mansion","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Software Mansion","logo":"https://media.daily.dev/image/upload/s--sOx0vaVZ--/f_auto,q_auto/v1785654908/logos/swmansion?_a=BAMAMicg0","url":"https://daily.dev/sources/swmansion"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/what-it-takes-to-migrate-discord-to-rn-s-new-architecture-qkivgduxv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"mobile,react-native,discord","timeRequired":"PT16M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Software Mansion","item":"https://daily.dev/sources/swmansion"},{"@type":"ListItem","position":3,"name":"What It Takes to Migrate Discord to RN's New Architecture"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/what-it-takes-to-migrate-discord-to-rn-s-new-architecture-qkivgduxv","comment":[{"@type":"Comment","text":"I’d have shipped the measure() helper as-is. pageY still comes back, it just means modal-relative now, and the overlay still treats it as window space. Works on every normal screen. Only the long-press inside a modal is offset.","datePublished":"2026-09-09T10:59:13.063Z","url":"https://daily.dev/posts/qKiVGdUXV#c-8jx5LsG5J","author":{"@type":"Person","name":"Leonid Bugaev","url":"https://daily.dev/leonidbugaev","image":"https://lh3.googleusercontent.com/a/ACg8ocLhMgurwTmJElWaH9A8Ju8cHvZxgMCDt009jEYkmFCyUGAoaGSw=s96-c"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/what-it-takes-to-migrate-discord-to-rn-s-new-architecture-qkivgduxv#faq","mainEntity":[{"@type":"Question","name":"Why does react-native measure() return different coordinates for a view inside a modal versus outside one under Fabric?","acceptedAnswer":{"@type":"Answer","text":"Under Fabric, measuring a view returns a position relative to its Yoga root, and a modal is its own root, unlike the old architecture where all measurements were relative to the window. Outside a modal the two are identical, but inside a modal the same measure() call returns modal-relative coordinates instead of window coordinates, breaking things like context menus positioned in a FullWindowOverlay. Teams debugging modal positioning glitches after a New Architecture upgrade can find prior fixes surfaced on daily.dev."}},{"@type":"Question","name":"Why would a react-native gesture handler's onFinalize never fire after changing an accessibilityElementsHidden prop mid-gesture?","acceptedAnswer":{"@type":"Answer","text":"Accessibility props like accessibilityElementsHidden and importantForAccessibility are on the list of props that force Fabric's view-flattening decision to be re-evaluated on every commit, so toggling them mid-gesture can invalidate the native view backing an in-progress gesture, canceling it before onFinalize runs. Setting collapsable={false} on the wrapping view keeps it as a real native view and fixes the issue. Anyone chasing flaky gesture bugs after a Fabric migration can track similar root causes on daily.dev."}},{"@type":"Question","name":"What causes a deadlock freeze when a legacy React Native view manager class name doesn't end in Manager under the New Architecture interop layer?","acceptedAnswer":{"@type":"Answer","text":"The interop layer's fast lookup path appends Manager to a component name to find its Objective-C class; if the class is named without that suffix, the fast path misses and falls back to a synchronous main-thread module creation call while holding a write lock on the registry, which can deadlock against a concurrent read lock request from an animation updating props on the main thread. Renaming the class to include the Manager suffix (using RCT_EXTERN_REMAP_MODULE to keep the JS-facing name unchanged) avoids the slow path and the deadlock. Developers hunting unexplained app freezes after adopting Fabric can find similar interop layer gotchas on daily.dev."}}]}
```

