mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 05:55:10 +00:00
29 lines
584 B
JavaScript
29 lines
584 B
JavaScript
import React, {
|
|
Component,
|
|
PropTypes
|
|
} from 'react-native';
|
|
import Shape, {ELLIPSE} from './Shape';
|
|
import {ellipseProps, pathProps, fillProps, strokeProps} from '../lib/props';
|
|
|
|
class Ellipse extends Shape{
|
|
static displayName = 'Ellipse';
|
|
static propTypes = {
|
|
...pathProps,
|
|
...ellipseProps
|
|
};
|
|
|
|
static contextTypes = {
|
|
...fillProps,
|
|
...strokeProps,
|
|
...ellipseProps,
|
|
isInGroup: PropTypes.bool
|
|
};
|
|
|
|
constructor() {
|
|
super(...arguments);
|
|
this.type = ELLIPSE;
|
|
};
|
|
}
|
|
|
|
export default Ellipse;
|