From 6392b5320ce4d580f3822effab45fb29020bf4b7 Mon Sep 17 00:00:00 2001 From: Pieter Vanderwerff Date: Fri, 12 May 2023 11:12:35 -0700 Subject: [PATCH] Presuppress Flow errors for 0.206 in fbsource (#37390) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37390 X-link: https://github.com/facebook/react-fbsource-import/pull/4 Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D45756542 fbshipit-source-id: 255e02362aba9a41ab8e9588127db7b2752f481d --- .../Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js b/packages/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js index 74512b72977..b5894d72c7a 100644 --- a/packages/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +++ b/packages/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js @@ -7,7 +7,7 @@ * @noformat * @flow strict-local * @nolint - * @generated SignedSource<> + * @generated SignedSource<<1b39316520f5af25f0a141d7d78b0809>> */ 'use strict'; @@ -108,6 +108,7 @@ exports.get = function (name: string): ViewConfig { 'View config getter callback for component `%s` must be a function (received `%s`).%s', name, callback === null ? 'null' : typeof callback, + // $FlowFixMe[recursive-definition] typeof name[0] === 'string' && /[a-z]/.test(name[0]) ? ' Make sure to start component names with a capital letter.' : '',