react-native-macos/React/Views
Moti Zilberman d6e9891577 Reduce log level of "unrecognized font family" from Error to Info
Summary:
Changelog:
[iOS][Fixed] - Unrecognized fontFamily values no longer trigger a redbox

## Context

We are starting to roll out a new consistent approach to style errors in React Native, where malformed or semantically invalid style values will never be treated as runtime errors. Instead, bad style values will consistently fall back to known defaults; the incorrect visual rendering will serve as the main runtime diagnostic for developers. We will advise developers to rely on static types for additional diagnostics.

This work will take place over multiple commits and possibly multiple releases of React Native.

## This diff

Here we fix this issue as it applies to the `fontFamily` style prop. The legacy (Paper) renderer on iOS is the only concrete implementation that had to change. Fabric and Android already implement the correct behaviour.

h/t EvanBacon for the report: https://twitter.com/Baconbrix/status/1623039650775371792

Reviewed By: huntie

Differential Revision: D43159284

fbshipit-source-id: 6afeef3abc5781e18671708f642073d25f2347e9
2023-02-09 10:57:50 -08:00
..
RefreshControl RCTRefreshControl: Updates progressOffset behaviour to prevent it from being applied by default (#35281) 2022-11-17 08:06:41 -08:00
SafeAreaView Remove iOS 11 deprecation warnings around SafeArea (#32851) 2022-05-16 09:27:43 -07:00
ScrollView Fix ScrollView automaticallyAdjustKeyboardInsets not resetting when Prefer Cross-Fade Transitions is enabled (#35933) 2023-01-24 03:25:25 -08:00
RCTActivityIndicatorView.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTActivityIndicatorView.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTActivityIndicatorViewManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTActivityIndicatorViewManager.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTAnimationType.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTAutoInsetsProtocol.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTBorderCurve.h Added border curve style prop ("Squircle" effect - iOS only) (#33783) 2022-07-21 04:11:30 -07:00
RCTBorderDrawing.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTBorderDrawing.m Adopt UIGraphicsImageRenderer API 2022-04-22 17:02:51 -07:00
RCTBorderStyle.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTComponent.h Add mechanism for iOS native components to expose capturing-only events 2022-04-07 14:07:58 -07:00
RCTComponentData.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTComponentData.m Remove RCTViewConfigEventValidAttributesDisabled 2022-12-02 09:08:16 -08:00
RCTConvert+CoreLocation.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTConvert+CoreLocation.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTConvert+Transform.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTConvert+Transform.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTFont.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTFont.mm Reduce log level of "unrecognized font family" from Error to Info 2023-02-09 10:57:50 -08:00
RCTLayout.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTLayout.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalHostView.h onDismiss to be an RCTDirectEventBlock (#33222) 2022-03-03 18:06:08 -08:00
RCTModalHostView.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalHostViewController.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalHostViewController.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalHostViewManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalHostViewManager.m fix: fix the potential race condition when dismissing and presentating modal (#35705) 2023-01-03 11:41:40 -08:00
RCTModalManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalManager.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTPointerEvents.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTRootShadowView.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTRootShadowView.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSegmentedControl.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSegmentedControl.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSegmentedControlManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSegmentedControlManager.m Minor: Rename RCTNotAllowedInAppWideFabric to RCTNotAllowedInFabricWithoutLegacy 2022-07-08 15:07:55 -07:00
RCTShadowView+Internal.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTShadowView+Internal.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTShadowView+Layout.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTShadowView+Layout.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTShadowView.h feat: flex gap bindings (#34974) 2022-10-20 14:53:32 -07:00
RCTShadowView.m feat: flex gap bindings (#34974) 2022-10-20 14:53:32 -07:00
RCTSwitch.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSwitch.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSwitchManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSwitchManager.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTTextDecorationLineType.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTView.h feat: Add logical border block color properties (#35999) 2023-01-31 10:58:24 -08:00
RCTView.m feat: Add logical border block color properties (#35999) 2023-01-31 10:58:24 -08:00
RCTViewManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTViewManager.m feat: Add logical border block color properties (#35999) 2023-01-31 10:58:24 -08:00
RCTViewUtils.h fix more imports 2022-07-19 12:53:11 -07:00
RCTViewUtils.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTWrapperViewController.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTWrapperViewController.m Remove iOS 11 deprecation warnings around SafeArea (#32851) 2022-05-16 09:27:43 -07:00
UIView+Private.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
UIView+React.h Integrated iOS-only `accessibilityLanguage` prop (#33090) 2022-03-07 09:43:30 -08:00
UIView+React.m Integrated iOS-only `accessibilityLanguage` prop (#33090) 2022-03-07 09:43:30 -08:00