mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37702 Changelog: [Internal] the context container is a DI object in our internal infra. the delegate method `createContextContainer` is used to pass down internal implementations that may be used in our infra, notably the `ReactNativeConfig`. this API used to be required for the app delegate to implement. in this change, i introduce a protocol, `RCTContextContainerHandling`, where we shift the burden of creating the DI container to our internal infra where userland can now optionally add dependencies to this. this also removes more C++ boilerplate for the bridgeless setup. Reviewed By: sammy-SC Differential Revision: D46245433 fbshipit-source-id: 552a9ab0b6a178bab592743863694ff886b152f8