Skip to content

No matching constructor for initialization of 'RNCProgressViewState' #161

Done

Description

@devendra-dangi
Image

#pragma once

#include <jsi/jsi.h>
#include <react/renderer/components/progressview/Props.h>
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
#include <react/renderer/components/view/ViewEventEmitter.h>
#include <react/renderer/core/LayoutContext.h>
#include <react/renderer/imagemanager/ImageManager.h>
#include <react/renderer/imagemanager/primitives.h>

#include "RNCProgressViewState.h"

namespace facebook {
namespace react {

JSI_EXPORT extern const char RNCProgressViewComponentName[];

/*

  • ShadowNode for component.
    */
    class JSI_EXPORT RNCProgressViewShadowNode final
    : public ConcreteViewShadowNode<RNCProgressViewComponentName,
    RNCProgressViewProps, ViewEventEmitter,
    RNCProgressViewState> {
    public:
    using ConcreteViewShadowNode::ConcreteViewShadowNode;

// Associates a shared ImageManager with the node.
void setImageManager(const SharedImageManager &imageManager);

static RNCProgressViewState initialStateData(
ShadowNodeFragment const &fragment,
ShadowNodeFamilyFragment const &familyFragment,
ComponentDescriptor const &componentDescriptor) {
auto imageSource = ImageSource{ImageSource::Type::Invalid};
return {
imageSource,
{imageSource, nullptr},
imageSource,
{imageSource, nullptr},
};
}

#pragma mark - LayoutableShadowNode

void layout(LayoutContext layoutContext) override;

private:
void updateStateIfNeeded();

ImageSource getProgressImageSource() const;
ImageSource getTrackImageSource() const;

SharedImageManager imageManager_;
};

} // namespace react
} // namespace facebook

RN Version : 0.76.9

Activity

  1. iamvikashh commented on Jan 30, 2026

    @iamvikashh

    were you able to fix it?

  2. Naturalclar commented on Nov 25, 2026

    @Naturalclar
    Member

    Fixed by #155 (released in 1.5.1). The new-architecture code now builds against React Native 0.81 in CI since #178. Please reopen if you still see this on 2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions