Remove prop-types

This commit is contained in:
Janic Duplessis
2018-10-14 17:15:12 -04:00
parent 2f1d6e1b7c
commit 0be0d00fc3
27 changed files with 51 additions and 1091 deletions
+1 -13
View File
@@ -1,22 +1,12 @@
import React from "react";
import PropTypes from "prop-types";
import { requireNativeComponent } from "react-native";
import extractProps from "../lib/extract/extractProps";
import { pathProps, numberProp } from "../lib/props";
import { UseAttributes } from "../lib/attributes";
import Shape from "./Shape";
const idExpReg = /^#(.+)$/;
export default class extends Shape {
static displayName = "Use";
static propTypes = {
href: PropTypes.string.isRequired,
width: numberProp, // Just for reusing `Symbol`
height: numberProp, // Just for reusing `Symbol`
...pathProps,
};
static defaultProps = {
width: 0,
height: 0,
@@ -58,6 +48,4 @@ export default class extends Shape {
}
}
const RNSVGUse = requireNativeComponent("RNSVGUse", null, {
nativeOnly: UseAttributes,
});
const RNSVGUse = requireNativeComponent("RNSVGUse");