A framework for building native applications using React
Fix Crash when rendering Switch component (#53393)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53393 When implementing the changes for the Switch component for iOS 26, I didn't realize that the code in [`RCTIntance.mm`](https://www.internalfb.com/code/fbsource/[a54514baccf4e1f828ef46af8180555754c405d8]/xplat/js/react-native-github/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm?lines=344-375) was running behind a feature flag. This means that all the users not in the experiment where the feature flag is turned on will experience a crash as soon as they navigate to a React Native screen that contains a Switch. This change fixes the problem by adding a jump to the right queue and it also fixes a measurement issue with the Switch. ## Changelog: [iOS][Fixed] - Fixed a crash when rendering the Switch component bypass-github-export-checks Reviewed By: GijsWeterings Differential Revision: D80702245 fbshipit-source-id: 480ea061233d35e31679b4b30758dbc133ff0a77
R
Riccardo Cipolleschi committed
28275a0f7b182a215010d47fb841d9c2c36bb24c
Parent: bcf76e8
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 8/21/2025, 5:13:22 PM