/* * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved * Use of this source code is governed by a MIT license that can be * found in the LICENSE file. */ import { RNPackage } from '@rnoh/react-native-openharmony/ts'; import type {DescriptorWrapperFactoryByDescriptorTypeCtx, DescriptorWrapperFactoryByDescriptorType} from '@rnoh/react-native-openharmony/ts'; import { RNC } from './generated/ts'; export class ProgressViewPackage extends RNPackage { createDescriptorWrapperFactoryByDescriptorType(ctx: DescriptorWrapperFactoryByDescriptorTypeCtx): DescriptorWrapperFactoryByDescriptorType { return { [RNC.RNCProgressView.NAME]: (ctx) => new RNC.RNCProgressView.DescriptorWrapper(ctx.descriptor) } } }