hunk.code_window: <PlatformsSection android emulator ios simulator />
   ## Installation
   <APIInstallSection href="https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.mdx#react-native-webview-getting-started-guide" />
   ## Usage
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit: <APIInstallSection href="https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.md#react-native-webview-getting-started-guide" />
  
hunk.file_path: docs/pages/versions/v45.0.0/sdk/webview.mdx
hunk.type: replace
file: /*
   * 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.
   */
  
  #pragma once
  
  #include <ABI47_0_0React/ABI47_0_0renderer/core/ConcreteComponentDescriptor.h>
  #include "ABI47_0_0AndroidProgressBarMeasurementsManager.h"
  #include "ABI47_0_0AndroidProgressBarShadowNode.h"
  
  namespace ABI47_0_0facebook {
  namespace ABI47_0_0React {
  
  /*
   * Descriptor for <AndroidProgressBar> component.
   */
  class AndroidProgressBarComponentDescriptor final
      : public ConcreteComponentDescriptor<AndroidProgressBarShadowNode> {
   public:
    AndroidProgressBarComponentDescriptor(
        ComponentDescriptorParameters const &parameters)
        : ConcreteComponentDescriptor(parameters),
          measurementsManager_(
              std::make_shared<AndroidProgressBarMeasurementsManager>(
                  contextContainer_)) {}
  
    void adopt(ShadowNode::Unshared const &shadowNode) const override {
      ConcreteComponentDescriptor::adopt(shadowNode);
  
      auto androidProgressBarShadowNode =
          std::static_pointer_cast<AndroidProgressBarShadowNode>(shadowNode);
  
      // `AndroidProgressBarShadowNode` uses
      // `AndroidProgressBarMeasurementsManager` to provide measurements to Yoga.
      androidProgressBarShadowNode->setAndroidProgressBarMeasurementsManager(
          measurementsManager_);
  
      // All `AndroidProgressBarShadowNode`s must have leaf Yoga nodes with
      // properly setup measure function.
      androidProgressBarShadowNode->enableMeasurement();
    }
  
   private:
    const std::shared_ptr<AndroidProgressBarMeasurementsManager>
        measurementsManager_;
  };
  
  } // namespace ABI47_0_0React
  } // namespace ABI47_0_0facebook
  