From 4af8d24ac73475d734df0689738f6dcf604ddade Mon Sep 17 00:00:00 2001 From: Sascha Zarhuber Date: Sat, 6 Apr 2019 14:37:40 +0200 Subject: [PATCH] fix(react-sketchapp): fixed Svg export --- types/react-sketchapp/lib/components/Svg/index.d.ts | 4 +++- types/react-sketchapp/react-sketchapp-tests.tsx | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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 = () => ( + + + +);