Repository: NativeScript/NativeScript
File: packages/core/accessibility/accessibility-properties.ts (TypeScript)

Code before:
}

export const accessibilityEnabledProperty = new CssProperty<Style, boolean>({
	name: 'accessible',
	cssName: 'a11y-enabled',
	valueConverter: booleanConverter,
});
accessibilityEnabledProperty.register(Style);

export const iOSAccessibilityAdjustsFontSizeProperty = new InheritedCssProperty<Style, boolean>({
	defaultValue: false,
	name: 'iOSAccessibilityAdjustsFontSize',
	cssName: 'ios-a11y-adjusts-font-size',
	valueConverter: booleanConverter,
});
iOSAccessibilityAdjustsFontSizeProperty.register(Style);

export const iOSAccessibilityMinFontScaleProperty = new InheritedCssProperty<Style, number>({
	defaultValue: 0,
	name: 'iOSAccessibilityMinFontScale',
	cssName: 'ios-a11y-min-font-scale',
	valueConverter: parseFloat,
});
iOSAccessibilityMinFontScaleProperty.register(Style);

export const iOSAccessibilityMaxFontScaleProperty = new InheritedCssProperty<Style, number>({
	defaultValue: 0,
	name: 'iOSAccessibilityMaxFontScale',
	cssName: 'ios-a11y-max-font-scale',
	valueConverter: parseFloat,
});
iOSAccessibilityMaxFontScaleProperty.register(Style);

export const accessibilityHiddenProperty = new (global.isIOS ? InheritedCssProperty : CssProperty)({
	name: 'accessibilityHidden',
	cssName: 'a11y-hidden',
	valueConverter: booleanConverter,
});
accessibilityHiddenProperty.register(Style);

export const accessibilityIdentifierProperty = new Property<View, string>({
	name: 'accessibilityIdentifier',
});

export const accessibilityRoleProperty = new CssProperty<Style, AccessibilityRole>({
	name: 'accessibilityRole',
	cssName: 'a11y-role',
	valueConverter: makePropertyEnumConverter<AccessibilityRole>(AccessibilityRole),
});
accessibilityRoleProperty.register(Style);


Review comment (suggestion):
```suggestion
export const iosAccessibilityMaxFontScaleProperty = new InheritedCssProperty<Style, number>({
```

Code after:
}

export const accessibilityEnabledProperty = new CssProperty<Style, boolean>({
	name: 'accessible',
	cssName: 'a11y-enabled',
	valueConverter: booleanConverter,
});
accessibilityEnabledProperty.register(Style);

export const iosAccessibilityAdjustsFontSizeProperty = new InheritedCssProperty<Style, boolean>({
	defaultValue: false,
	name: 'iosAccessibilityAdjustsFontSize',
	cssName: 'ios-a11y-adjusts-font-size',
	valueConverter: booleanConverter,
});
iosAccessibilityAdjustsFontSizeProperty.register(Style);

export const iosAccessibilityMinFontScaleProperty = new InheritedCssProperty<Style, number>({
	defaultValue: 0,
	name: 'iosAccessibilityMinFontScale',
	cssName: 'ios-a11y-min-font-scale',
	valueConverter: parseFloat,
});
iosAccessibilityMinFontScaleProperty.register(Style);

export const iosAccessibilityMaxFontScaleProperty = new InheritedCssProperty<Style, number>({
	defaultValue: 0,
	name: 'iosAccessibilityMaxFontScale',
	cssName: 'ios-a11y-max-font-scale',
	valueConverter: parseFloat,
});
iosAccessibilityMaxFontScaleProperty.register(Style);

export const accessibilityHiddenProperty = new (global.isIOS ? InheritedCssProperty : CssProperty)({
	name: 'accessibilityHidden',
	cssName: 'a11y-hidden',
	valueConverter: booleanConverter,
});
accessibilityHiddenProperty.register(Style);

export const accessibilityIdentifierProperty = new Property<View, string>({
	name: 'accessibilityIdentifier',
});

export const accessibilityRoleProperty = new CssProperty<Style, AccessibilityRole>({
	name: 'accessibilityRole',
	cssName: 'a11y-role',
	valueConverter: makePropertyEnumConverter<AccessibilityRole>(AccessibilityRole),
});
accessibilityRoleProperty.register(Style);