-
Notifications
You must be signed in to change notification settings - Fork 24k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove force_static from textinput module
Summary: changelog: [internal] force_static doesn't need to be in here, let's remove it. I change one module per diff. It makes it easier to land it and pinpoint where build failures are coming from. Reviewed By: christophpurrer Differential Revision: D56678530
- Loading branch information
1 parent
bb2c13a
commit a56f425
Showing
2 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
...ges/react-native/ReactCommon/react/renderer/components/image/ImageComponentDescriptor.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
#include "ImageComponentDescriptor.h" | ||
#include <react/renderer/imagemanager/ImageManager.h> | ||
|
||
namespace facebook::react { | ||
|
||
ImageComponentDescriptor::ImageComponentDescriptor( | ||
const ComponentDescriptorParameters& parameters) | ||
: ConcreteComponentDescriptor(parameters), | ||
imageManager_(std::make_shared<ImageManager>(contextContainer_)){}; | ||
|
||
void ImageComponentDescriptor::adopt(ShadowNode& shadowNode) const { | ||
ConcreteComponentDescriptor::adopt(shadowNode); | ||
|
||
auto& imageShadowNode = static_cast<ImageShadowNode&>(shadowNode); | ||
|
||
// `ImageShadowNode` uses `ImageManager` to initiate image loading and | ||
// communicate the loading state and results to mounting layer. | ||
imageShadowNode.setImageManager(imageManager_); | ||
} | ||
} // namespace facebook::react |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters