mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
28 lines
544 B
JavaScript
28 lines
544 B
JavaScript
import React, {
|
|
PropTypes
|
|
} from 'react-native';
|
|
import Shape, {RECT} from './Shape';
|
|
import {rectProps, pathProps, fillProps, strokeProps} from '../lib/props';
|
|
|
|
class Rect extends Shape{
|
|
static displayName = 'Rect';
|
|
static propTypes = {
|
|
...pathProps,
|
|
...rectProps
|
|
};
|
|
|
|
static contextTypes = {
|
|
...fillProps,
|
|
...strokeProps,
|
|
...rectProps,
|
|
isInGroup: PropTypes.bool
|
|
};
|
|
|
|
constructor() {
|
|
super(...arguments);
|
|
this.type = RECT;
|
|
}
|
|
}
|
|
|
|
export default Rect;
|