/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/scripts/codegen/templates/RCTThirdPartyComponentsProviderMM.template
30 строк
757 B
Vojtech Novak
fix(ios): enable use of multiple RCTAppDependencyProvider instances (#49889)
11 мар 2025, 15:57
11 мар 2025, 15:57
0cc1ac1
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <Foundation/Foundation.h> #import "RCTThirdPartyComponentsProvider.h" #import <React/RCTComponentViewProtocol.h> @implementation RCTThirdPartyComponentsProvider + (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents { static NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *thirdPartyComponents = nil; static dispatch_once_t nativeComponentsToken; dispatch_once(&nativeComponentsToken, ^{ thirdPartyComponents = @{ {thirdPartyComponentsMapping} }; }); return thirdPartyComponents; } @end