mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 06:07:41 +00:00
Fix font PropTypes
This commit is contained in:
+2
-2
@@ -14,8 +14,8 @@ export default class extends Shape {
|
||||
static propTypes = {
|
||||
...pathProps,
|
||||
...fontProps,
|
||||
dx: numberProp,
|
||||
dy: numberProp,
|
||||
dx: PropTypes.string,
|
||||
dy: PropTypes.string,
|
||||
};
|
||||
|
||||
static childContextTypes = {
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ export default class extends Shape {
|
||||
static propTypes = {
|
||||
...pathProps,
|
||||
...fontProps,
|
||||
dx: numberProp,
|
||||
dy: numberProp,
|
||||
dx: PropTypes.string,
|
||||
dy: PropTypes.string,
|
||||
};
|
||||
|
||||
static childContextTypes = {
|
||||
|
||||
@@ -19,7 +19,7 @@ export default class extends Shape {
|
||||
href: PropTypes.string.isRequired,
|
||||
method: PropTypes.oneOf(['align', 'stretch']),
|
||||
spacing: PropTypes.oneOf(['auto', 'exact']),
|
||||
startOffset: numberProp
|
||||
startOffset: PropTypes.string
|
||||
};
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user