Skip to content

Commit f9f4cef

Browse files
committed
fix: imageRotation default value
1 parent cc57cff commit f9f4cef

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/image/index-common.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export const progressBarColorProperty = new Property<ImageBase, string>({ name:
144144
export const roundAsCircleProperty = new Property<ImageBase, boolean>({ name: 'roundAsCircle', valueConverter: booleanConverter, affectsLayout: isAndroid });
145145
export const blurRadiusProperty = new Property<ImageBase, number>({ name: 'blurRadius', valueConverter: (v) => parseFloat(v) });
146146
export const blurDownSamplingProperty = new Property<ImageBase, number>({ name: 'blurDownSampling', valueConverter: (v) => parseFloat(v) });
147-
export const imageRotationProperty = new Property<ImageBase, number>({ name: 'imageRotation', valueConverter: (v) => parseFloat(v) });
147+
export const imageRotationProperty = new Property<ImageBase, number>({ name: 'imageRotation', valueConverter: (v) => parseFloat(v), defaultValue: 0 });
148148
export const autoPlayAnimationsProperty = new Property<ImageBase, boolean>({ name: 'autoPlayAnimations', valueConverter: booleanConverter });
149149
export const tapToRetryEnabledProperty = new Property<ImageBase, boolean>({ name: 'tapToRetryEnabled', valueConverter: booleanConverter });
150150
export const aspectRatioProperty = new Property<ImageBase, number>({ name: 'aspectRatio', affectsLayout: true, valueConverter: (v) => parseFloat(v) });
@@ -253,11 +253,9 @@ export class ImageBase extends View {
253253
public decodeHeight: number;
254254
public animatedImageView: boolean;
255255
public loadMode: 'sync' | 'async';
256-
alwaysFade: boolean;
257-
noCache: boolean;
258-
// fade: boolean;
259-
tintColor: Color;
260-
// transition: Transition;
256+
public alwaysFade: boolean;
257+
public noCache: boolean;
258+
public tintColor: Color;
261259

262260
public readonly isLoading: boolean;
263261

0 commit comments

Comments
 (0)