mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 06:07:41 +00:00
fix ellipse draw bug and fix shape props context
This commit is contained in:
+3
-10
@@ -3,7 +3,7 @@ import React, {
|
||||
PropTypes
|
||||
} from 'react-native';
|
||||
import Shape, {RECT} from './Shape';
|
||||
import {rectProps, pathProps} from '../lib/props';
|
||||
import {rectProps, pathProps, fillProps, strokeProps} from '../lib/props';
|
||||
|
||||
class Rect extends Shape{
|
||||
static displayName = 'Rect';
|
||||
@@ -12,16 +12,9 @@ class Rect extends Shape{
|
||||
...rectProps
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: 0,
|
||||
height: 0,
|
||||
rx: 0,
|
||||
ry: 0
|
||||
};
|
||||
|
||||
static contextTypes = {
|
||||
...fillProps,
|
||||
...strokeProps,
|
||||
...rectProps,
|
||||
isInGroup: PropTypes.bool
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user