mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: We've seen a couple of `EXC_BAD_ACCESS` crashes in [`RCTParagraphComponentAccessibilityProvider.mm:L125`](https://github.com/facebook/react-native/blob/52d8a797e7a6be3fa472f323ceca4814a28ef596/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm#L125), most likely explained by [RCTLocalizationProvider RCTLocalizedString] returning nil, which will happen in the case that a language pack has no entry for the input string. This is a small defensive change to fall back to the input if there's no better alternative. Changelog: [iOS][Fixed] - `RCTLocalizationProvider` Fall back to input when no localization is available Reviewed By: luluonet Differential Revision: D35583786 fbshipit-source-id: e8ae6ff61518e105301e7e51f5d8f43290fb20bf