mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 08:22:23 +00:00
chore: generate flow types from ts definitions
This commit is contained in:
@@ -62,7 +62,7 @@ function prepare(props) {
|
|||||||
clean.ref = forwardedRef;
|
clean.ref = forwardedRef;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props.onPress && !props.onClick){
|
if (props.onPress && !props.onClick) {
|
||||||
clean.onClick = props.onPress;
|
clean.onClick = props.onPress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -404,6 +404,27 @@ export type MaskProps = {
|
|||||||
...
|
...
|
||||||
} & CommonPathProps;
|
} & CommonPathProps;
|
||||||
declare export var Mask: React.ComponentClass<MaskProps>;
|
declare export var Mask: React.ComponentClass<MaskProps>;
|
||||||
|
declare export var MarkerUnits: {|
|
||||||
|
+STROKE_WIDTH: "strokeWidth", // "strokeWidth"
|
||||||
|
+USER_SPACE_ON_USE: "userSpaceOnUse" // "userSpaceOnUse"
|
||||||
|
|};
|
||||||
|
|
||||||
|
declare export var Orient: {|
|
||||||
|
+AUTO: "auto", // "auto"
|
||||||
|
+AUTO_START_REVERSE: "auto-start-reverse" // "auto-start-reverse"
|
||||||
|
|};
|
||||||
|
export interface MarkerProps {
|
||||||
|
id?: string;
|
||||||
|
viewBox?: string;
|
||||||
|
preserveAspectRatio?: string;
|
||||||
|
refX?: NumberProp;
|
||||||
|
refY?: NumberProp;
|
||||||
|
markerWidth?: NumberProp;
|
||||||
|
markerHeight?: NumberProp;
|
||||||
|
markerUnits?: $Values<typeof MarkerUnits>;
|
||||||
|
orient?: $Values<typeof Orient> | NumberProp;
|
||||||
|
}
|
||||||
|
declare export var Marker: React.ComponentClass<MarkerProps>;
|
||||||
export type Styles = {
|
export type Styles = {
|
||||||
[property: string]: string,
|
[property: string]: string,
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user