Skip to content

Commit e4e6609

Browse files
committed
chore: typings
1 parent 27fa31a commit e4e6609

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/image/index-common.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export declare abstract class ImageBase extends View {
105105
progressiveRenderingEnabled: boolean;
106106
localThumbnailPreviewsEnabled: boolean;
107107
showProgressBar: boolean;
108-
progressBarColor: string;
108+
progressBarColor: Color | string;
109109
roundAsCircle: boolean;
110110
roundBottomRightRadius: number;
111111
roundTopLeftRadius: number;

src/image/index-common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Color, CoreTypes, Length, Property, ShorthandProperty, Trace, View, booleanConverter } from '@nativescript/core';
1+
import { Color, CoreTypes, Length, Property, Trace, View, booleanConverter } from '@nativescript/core';
22
import { EventData as IEventData } from '@nativescript/core/data/observable';
33
// import { colorConverter } from '@nativescript/core/ui/styling/style-properties';
44
import { ImageAsset } from '@nativescript/core/image-asset';
@@ -283,7 +283,7 @@ export abstract class ImageBase extends View {
283283
public progressiveRenderingEnabled: boolean;
284284
public localThumbnailPreviewsEnabled: boolean;
285285
public showProgressBar: boolean;
286-
public progressBarColor: Color;
286+
public progressBarColor: Color | string;
287287
public roundAsCircle: boolean;
288288
public roundBottomRightRadius: number;
289289
public roundTopLeftRadius: number;

src/image/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ export class Img extends ImageBase {
843843
}
844844

845845
if (this.showProgressBar) {
846-
builder.setProgressBarImage(this.progressBarColor?.hex, this.stretch);
846+
builder.setProgressBarImage((this.progressBarColor as Color)?.hex, this.stretch);
847847
}
848848

849849
if (this.roundAsCircle) {

src/image/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class Img extends View {
127127
/**
128128
* String value used for setting the color of the progress bar. Can be set to hex values ("#FF0000"") and predefined colors ("green").
129129
*/
130-
progressBarColor: string;
130+
progressBarColor: Color | string;
131131

132132
/**
133133
* Boolean value used for determining if the image should be rounded as a circle.

0 commit comments

Comments
 (0)