diff --git a/types/react-sketchapp/lib/components/Svg/index.d.ts b/types/react-sketchapp/lib/components/Svg/index.d.ts index 2112553c07..f21cf8f26e 100644 --- a/types/react-sketchapp/lib/components/Svg/index.d.ts +++ b/types/react-sketchapp/lib/components/Svg/index.d.ts @@ -1 +1,3 @@ -export * from './Svg'; +import Svg from './Svg'; + +export default Svg; diff --git a/types/react-sketchapp/react-sketchapp-tests.tsx b/types/react-sketchapp/react-sketchapp-tests.tsx index 3eef10db9d..ea15f895d8 100644 --- a/types/react-sketchapp/react-sketchapp-tests.tsx +++ b/types/react-sketchapp/react-sketchapp-tests.tsx @@ -6,11 +6,14 @@ import { Text, StyleSheet, TextStyles, + Svg, render, renderToJSON, Platform, } from 'react-sketchapp'; +import Circle from './lib/components/Svg/Circle'; + // the styles object should be a mapped typed mapping the keys of the object literal to numbers const styles = StyleSheet.create({ red: { @@ -69,3 +72,9 @@ TextStyles.create(context as any, { const shouldBeSketch = Platform.OS; const shouldBe1 = Platform.Version; + +const svg = () => ( + + + +);