Skip to content

Commit

Permalink
Merge 21b7983 into 9c4aca0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaulz committed Mar 6, 2019
2 parents 9c4aca0 + 21b7983 commit 10e0c19
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
33 changes: 33 additions & 0 deletions index.d.ts
@@ -0,0 +1,33 @@
import { SvgProps } from "react-native-svg";

export {
Circle,
ClipPath,
Defs,
Ellipse,
G,
Image,
Line,
LinearGradient,
Mask,
Path,
Pattern,
Polygon,
Polyline,
RadialGradient,
Rect,
Stop,
Symbol,
TSpan,
Text,
TextPath,
Use
} from "react-native-svg";

// Export SVG object with enhanced props which includes the title
interface EnhancedSvgProps extends SvgProps {
title?: string;
}

export const Svg: React.ComponentClass<EnhancedSvgProps>;
export default Svg;
7 changes: 6 additions & 1 deletion package.json
Expand Up @@ -6,6 +6,7 @@
"browser": "./lib",
"module": "./index",
"react-native": "./index",
"types": "./index.d.ts",
"scripts": {
"test:web": "mocha --require setup-env test/*.test.js",
"test": "nyc --reporter=text --reporter=json-summary npm run test:web",
Expand All @@ -31,7 +32,8 @@
"rip-out": "^1.0.0"
},
"peerDependencies": {
"react": "*"
"react": "*",
"react-native-svg": "*"
},
"devDependencies": {
"@babel/cli": "^7.1.2",
Expand Down Expand Up @@ -75,5 +77,8 @@
"transform": [
"babelify"
]
},
"nyc": {
"exclude": ["index.d.ts"]
}
}

0 comments on commit 10e0c19

Please sign in to comment.