mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-31 13:52:58 +00:00
feat: fix broken enum declaration (#1819)
After #1800 merged, the refactoring 286c02f was performed and enum declaration was back to previous one.
So type error mentioned at #1210 for maskUnits should occurred again.
This commit is contained in:
@@ -4,15 +4,9 @@ import { NumberProp } from '../lib/extract/types';
|
||||
import Shape from './Shape';
|
||||
import { RNSVGMarker } from './NativeComponents';
|
||||
|
||||
export enum MarkerUnits {
|
||||
STROKE_WIDTH = 'strokeWidth',
|
||||
USER_SPACE_ON_USE = 'userSpaceOnUse',
|
||||
}
|
||||
export type MarkerUnits = 'strokeWidth' | 'userSpaceOnUse';
|
||||
|
||||
export enum Orient {
|
||||
AUTO = 'auto',
|
||||
AUTO_START_REVERSE = 'auto-start-reverse',
|
||||
}
|
||||
export type Orient = 'auto' | 'auto-start-reverse';
|
||||
|
||||
export interface MarkerProps {
|
||||
children?: ReactNode;
|
||||
|
||||
@@ -10,14 +10,7 @@ import units from '../lib/units';
|
||||
import Shape from './Shape';
|
||||
import { RNSVGMask } from './NativeComponents';
|
||||
|
||||
export enum EMaskUnits {
|
||||
USER_SPACE_ON_USE = 'userSpaceOnUse',
|
||||
OBJECT_BOUNDING_BOX = 'objectBoundingBox',
|
||||
}
|
||||
|
||||
export type TMaskUnits =
|
||||
| EMaskUnits.USER_SPACE_ON_USE
|
||||
| EMaskUnits.OBJECT_BOUNDING_BOX;
|
||||
export type TMaskUnits = 'userSpaceOnUse' | 'objectBoundingBox';
|
||||
|
||||
export interface MaskProps extends CommonPathProps {
|
||||
children?: ReactNode;
|
||||
|
||||
Reference in New Issue
Block a user