fix(core): Enums deprecation adjustment (#9306)

This commit is contained in:
Nathan Walker
2021-04-06 19:38:19 -07:00
committed by GitHub
parent fde666de28
commit f42acd817f
2 changed files with 70 additions and 28 deletions

View File

@@ -742,20 +742,6 @@ export type LengthType = CoreTypes.LengthType;
*/
export type PercentLengthType = CoreTypes.PercentLengthType;
/**
* @deprecated Use `CoreTypes` instead. Enums will be removed in 9.0
*/
export namespace Enums {
export type DeviceOrientationType = CoreTypes.DeviceOrientationType;
export type HorizontalAlignmentType = CoreTypes.HorizontalAlignmentType;
export type VerticalAlignmentTextType = CoreTypes.VerticalAlignmentTextType;
export type VerticalAlignmentType = CoreTypes.VerticalAlignmentType;
export type OrientationType = CoreTypes.OrientationType;
export type TextAlignmentType = CoreTypes.TextAlignmentType;
export type TextTransformType = CoreTypes.TextTransformType;
export type VisibilityType = CoreTypes.VisibilityType;
}
/**
* @deprecated Use `CoreTypes.AnimationCurve` instead.
*/
@@ -770,3 +756,38 @@ export type HorizontalAlignment = CoreTypes.HorizontalAlignmentType;
* @deprecated Use `CoreTypes.VerticalAlignmentType` instead.
*/
export type VerticalAlignment = CoreTypes.VerticalAlignmentType;
/**
* @deprecated Use `CoreTypes` instead. Enums will be removed in 9.0
*/
export declare const Enums: {
Accuracy: typeof CoreTypes.Accuracy;
AndroidActionBarIconVisibility: typeof CoreTypes.AndroidActionBarIconVisibility;
AndroidActionItemPosition: typeof CoreTypes.AndroidActionItemPosition;
AnimationCurve: typeof CoreTypes.AnimationCurve;
AutocapitalizationType: typeof CoreTypes.AutocapitalizationType;
BackgroundRepeat: typeof CoreTypes.BackgroundRepeat;
DeviceOrientation: typeof CoreTypes.DeviceOrientation;
DeviceType: typeof CoreTypes.DeviceType;
Dock: typeof CoreTypes.Dock;
FontAttributes: typeof CoreTypes.FontAttributes;
FontStyle: typeof CoreTypes.FontStyle;
FontWeight: typeof CoreTypes.FontWeight;
HorizontalAlignment: typeof CoreTypes.HorizontalAlignment;
IOSActionItemPosition: typeof CoreTypes.IOSActionItemPosition;
ImageFormat: typeof CoreTypes.ImageFormat;
KeyboardType: typeof CoreTypes.KeyboardType;
NavigationBarVisibility: typeof CoreTypes.NavigationBarVisibility;
Orientation: typeof CoreTypes.Orientation;
ReturnKeyType: typeof CoreTypes.ReturnKeyType;
StatusBarStyle: typeof CoreTypes.StatusBarStyle;
Stretch: typeof CoreTypes.ImageStretch;
SystemAppearance: typeof CoreTypes.SystemAppearance;
TextAlignment: CoreTypes.TextAlignmentType;
TextDecoration: CoreTypes.TextDecorationType;
TextTransform: CoreTypes.TextTransformType;
UpdateTextTrigger: CoreTypes.UpdateTextTriggerType;
VerticalAlignment: CoreTypes.VerticalAlignmentType;
Visibility: CoreTypes.VisibilityType;
WhiteSpace: CoreTypes.WhiteSpaceType;
};

View File

@@ -306,20 +306,6 @@ export type LengthType = CoreTypes.LengthType;
*/
export type PercentLengthType = CoreTypes.PercentLengthType;
/**
* @deprecated Use `CoreTypes` instead. Enums will be removed in 9.0
*/
export namespace Enums {
export type DeviceOrientationType = CoreTypes.DeviceOrientationType;
export type HorizontalAlignmentType = CoreTypes.HorizontalAlignmentType;
export type VerticalAlignmentTextType = CoreTypes.VerticalAlignmentTextType;
export type VerticalAlignmentType = CoreTypes.VerticalAlignmentType;
export type OrientationType = CoreTypes.OrientationType;
export type TextAlignmentType = CoreTypes.TextAlignmentType;
export type TextTransformType = CoreTypes.TextTransformType;
export type VisibilityType = CoreTypes.VisibilityType;
}
/**
* @deprecated Use `CoreTypes.AnimationCurve` instead.
*/
@@ -334,3 +320,38 @@ export type HorizontalAlignment = CoreTypes.HorizontalAlignmentType;
* @deprecated Use `CoreTypes.VerticalAlignmentType` instead.
*/
export type VerticalAlignment = CoreTypes.VerticalAlignmentType;
/**
* @deprecated Use `CoreTypes` instead. Enums will be removed in 9.0
*/
export const Enums = {
Accuracy: CoreTypes.Accuracy,
AndroidActionBarIconVisibility: CoreTypes.AndroidActionBarIconVisibility,
AndroidActionItemPosition: CoreTypes.AndroidActionItemPosition,
AnimationCurve: CoreTypes.AnimationCurve,
AutocapitalizationType: CoreTypes.AutocapitalizationType,
BackgroundRepeat: CoreTypes.BackgroundRepeat,
DeviceOrientation: CoreTypes.DeviceOrientation,
DeviceType: CoreTypes.DeviceType,
Dock: CoreTypes.Dock,
FontAttributes: CoreTypes.FontAttributes,
FontStyle: CoreTypes.FontStyle,
FontWeight: CoreTypes.FontWeight,
HorizontalAlignment: CoreTypes.HorizontalAlignment,
IOSActionItemPosition: CoreTypes.IOSActionItemPosition,
ImageFormat: CoreTypes.ImageFormat,
KeyboardType: CoreTypes.KeyboardType,
NavigationBarVisibility: CoreTypes.NavigationBarVisibility,
Orientation: CoreTypes.Orientation,
ReturnKeyType: CoreTypes.ReturnKeyType,
StatusBarStyle: CoreTypes.StatusBarStyle,
Stretch: CoreTypes.ImageStretch,
SystemAppearance: CoreTypes.SystemAppearance,
TextAlignment: CoreTypes.TextAlignment,
TextDecoration: CoreTypes.TextDecoration,
TextTransform: CoreTypes.TextTransform,
UpdateTextTrigger: CoreTypes.UpdateTextTrigger,
VerticalAlignment: CoreTypes.VerticalAlignment,
Visibility: CoreTypes.Visibility,
WhiteSpace: CoreTypes.WhiteSpace,
};